summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sord.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sord.c b/src/sord.c
index 0ea4220..52c6e32 100644
--- a/src/sord.c
+++ b/src/sord.c
@@ -239,7 +239,7 @@ sord_node_compare(const SordNode* a, const SordNode* b)
if (a == b || !a || !b) {
return 0; // Exact or wildcard match
} else if (a->node.type != b->node.type) {
- return a->node.type - b->node.type;
+ return (a->node.type < b->node.type) ? -1 : 1;
}
int cmp = 0;