core: btree: template function comparator now checks for a negative value rather than -1 in particular

This commit is contained in:
2025-04-11 14:00:52 +01:00
parent 17e4bb8e19
commit fd47d10271

View File

@@ -159,7 +159,7 @@ extern "C" {
&node->container_node_member); \ &node->container_node_member); \
break; \ break; \
} \ } \
} else if (cmp == -1) { \ } else if (cmp < 0) { \
next = b_btree_left(cur); \ next = b_btree_left(cur); \
\ \
if (!next) { \ if (!next) { \