core: btree: template function comparator now checks for a negative value rather than -1 in particular
This commit is contained in:
@@ -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) { \
|
||||||
|
|||||||
Reference in New Issue
Block a user