From 5edd99c6619328b479ecf25c21997b133e7c6dee Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 31 Dec 2020 20:28:54 +0100 Subject: Fix zix_sorted_array_iter_is_end() --- src/sorted_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sorted_array.c') 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 -- cgit v1.2.1