summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sorted_array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sorted_array.c b/src/sorted_array.c
index 72a024c..eb48fe1 100644
--- a/src/sorted_array.c
+++ b/src/sorted_array.c
@@ -183,7 +183,7 @@ zix_sorted_array_end(ZixSortedArray* a)
bool
zix_sorted_array_iter_is_end(ZixSortedArray* a, ZixSortedArrayIter i)
{
- return i != zix_sorted_array_end(a);
+ return i >= zix_sorted_array_end(a);
}
ZixSortedArrayIter