diff options
Diffstat (limited to 'src/zix')
-rw-r--r-- | src/zix/tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zix/tree.c b/src/zix/tree.c index 55d39dc..15cea9a 100644 --- a/src/zix/tree.c +++ b/src/zix/tree.c @@ -599,7 +599,9 @@ zix_tree_find(const ZixTree* t, const void* e, ZixTreeIter** ti) const int cmp = t->cmp(e, n->data, t->cmp_data); if (cmp == 0) { break; - } else if (cmp < 0) { + } + + if (cmp < 0) { n = n->left; } else { n = n->right; |