Fix issue for RB Tree _it_equal_p method

if both iterators are equal and are associated
to a RB tree without any element.
This commit is contained in:
Patrick Pelissier committed 2021-07-05 22:44:58 +02:00
1 parent 408959c927
commit a79cd9da97
2 files changed
+9 -2

No files matched your search

+2
View File
@@ -96,6 +96,8 @@ static void test_uint(void)
rbtree_uint_it_end(it, tree);
assert (rbtree_uint_end_p(it));
assert(!rbtree_uint_it_equal_p(it2, it));
rbtree_uint_it_end(it2, tree);
assert(rbtree_uint_it_equal_p(it2, it));
assert( k == 0);
assert (rbtree_uint_hash(tree) != 0);