summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arbits/slbt_archive_meta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arbits/slbt_archive_meta.c b/src/arbits/slbt_archive_meta.c
index 435641e..0aebbe3 100644
--- a/src/arbits/slbt_archive_meta.c
+++ b/src/arbits/slbt_archive_meta.c
@@ -784,7 +784,7 @@ struct ar_meta_member_info * slbt_archive_member_from_offset(
while (l != r) {
m = (l + r) / 2;
- m += (l + 2) % 2;
+ m += (l + r) % 2;
if (offsetv[m] > offset) {
r = --m;