diff options
author | Rob Austein <sra@hactrn.net> | 2016-09-09 20:35:52 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-09-09 20:35:52 -0400 |
commit | 8677e58ebc751ab47f1a14273b7ef19dfa17a293 (patch) | |
tree | e8c39fb7aa3399ea9bc31b04ac2273a18e59d25c /ks_index.c | |
parent | 13718c804fd2b20a50cd0fe318390c3b2d24de32 (diff) |
Fencepost error in ks_find().
Diffstat (limited to 'ks_index.c')
-rw-r--r-- | ks_index.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |