aboutsummaryrefslogtreecommitdiff
path: root/ks_index.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-09-09 20:35:52 -0400
committerRob Austein <sra@hactrn.net>2016-09-09 20:35:52 -0400
commit8677e58ebc751ab47f1a14273b7ef19dfa17a293 (patch)
treee8c39fb7aa3399ea9bc31b04ac2273a18e59d25c /ks_index.c
parent13718c804fd2b20a50cd0fe318390c3b2d24de32 (diff)
Fencepost error in ks_find().
Diffstat (limited to 'ks_index.c')
-rw-r--r--ks_index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ks_index.c b/ks_index.c
index eb6ff10..c093a0a 100644
--- a/ks_index.c
+++ b/ks_index.c
@@ -56,7 +56,7 @@ static int ks_find(const hal_ks_index_t * const ksi,
int hi = ksi->used;
for (;;) {
- int m = (lo + hi) / 2;
+ int m = (lo + hi) >> 1;
if (m == lo) {
*where = hi;
return 0;