From 8677e58ebc751ab47f1a14273b7ef19dfa17a293 Mon Sep 17 00:00:00 2001
From: Rob Austein <sra@hactrn.net>
Date: Fri, 9 Sep 2016 20:35:52 -0400
Subject: Fencepost error in ks_find().

---
 ks_index.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
cgit v1.2.3