summaryrefslogtreecommitdiffhomepage
path: root/src/arbits
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-28 16:16:06 +0000
committermidipix <writeonce@midipix.org>2024-01-28 16:16:06 +0000
commit2f121c3724d807349b360f8f896f62c2f9dbff90 (patch)
tree609fb3dfcc460801bc5d204c7d856e84c6a51f6f /src/arbits
parentb6b8ce4e9628a8900002ccbe2a583133b87259b2 (diff)
downloadslibtool-2f121c3724d807349b360f8f896f62c2f9dbff90.tar.bz2
slibtool-2f121c3724d807349b360f8f896f62c2f9dbff90.tar.xz
slbt_archive_member_from_offset(): fix typo in expression (oops).
Diffstat (limited to 'src/arbits')
-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;