aboutsummaryrefslogtreecommitdiff
path: root/main.l
diff options
context:
space:
mode:
Diffstat (limited to 'main.l')
-rw-r--r--main.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.l b/main.l
index cae65e7..144fef3 100644
--- a/main.l
+++ b/main.l
@@ -160,7 +160,7 @@ print_ordinal(void)
return true;
/* Basic binary search */
- for (size_t l = 0, r = positions.len - 1, m; l <= r;) {
+ for (ssize_t l = 0, r = positions.len - 1, m; l <= r;) {
m = l + (r - l) / 2;
if (positions.ps[m] == pos)
return true;