aboutsummaryrefslogtreecommitdiff
path: root/src/common/libalgo/keyval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/libalgo/keyval.c')
-rw-r--r--src/common/libalgo/keyval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/libalgo/keyval.c b/src/common/libalgo/keyval.c
index 0368aed..528fa90 100644
--- a/src/common/libalgo/keyval.c
+++ b/src/common/libalgo/keyval.c
@@ -26,7 +26,7 @@ bool str_key_eq_fun(const void* a, const void* b) {
}
int id_key_cmp_fun(const void* a, const void* b) {
- return (b == a ? 0 : (b > a ? 1 : -1));
+ return (a == b ? 0 : (a < b ? -1 : 1));
}
int str_key_cmp_fun(const void* a, const void* b) {