summaryrefslogtreecommitdiff
path: root/lib/std/search.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/search.myr')
-rw-r--r--lib/std/search.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/search.myr b/lib/std/search.myr
index e5abd99..8ae364f 100644
--- a/lib/std/search.myr
+++ b/lib/std/search.myr
@@ -22,7 +22,7 @@ generic lsearch = {sl, key, cmp
/* binary search over a sorted list of values. */
generic bsearch = {sl, key, cmp
- var hi, lo, mid : usize
+ var hi, lo, mid : size
lo = 0
hi = sl.len - 1