From 2f121c3724d807349b360f8f896f62c2f9dbff90 Mon Sep 17 00:00:00 2001 From: midipix Date: Jan 28 2024 16:16:06 +0000 Subject: slbt_archive_member_from_offset(): fix typo in expression (oops). --- 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;