diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/zix/btree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zix/btree.c b/src/zix/btree.c index 78a5a0d..d830008 100644 --- a/src/zix/btree.c +++ b/src/zix/btree.c @@ -689,7 +689,7 @@ zix_btree_begin(const ZixBTree* const t) ZIX_API bool zix_btree_iter_is_end(const ZixBTreeIter* const i) { - return !i || i->stack[0].node == NULL; + return !i || (i->level == 0 && i->stack[0].node == NULL); } ZIX_API void |