aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;