From 3194184b037cec0804737d21498e2b8dc6c5a3a8 Mon Sep 17 00:00:00 2001 From: Dylan Conway Date: Sat, 14 Dec 2024 21:08:36 -0800 Subject: [PATCH] oops --- src/install/bin.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/install/bin.zig b/src/install/bin.zig index 82e7c4e9fa9200..d0162e63839de4 100644 --- a/src/install/bin.zig +++ b/src/install/bin.zig @@ -76,8 +76,10 @@ pub const Bin = extern struct { if (l_list.len != r_list.len) return false; // assuming these maps are small without duplicate keys - outer: for (0..l_list.len / 2) |i| { - for (0..r_list.len / 2) |j| { + var i: usize = 0; + outer: while (i < l_list.len) : (i += 2) { + var j: usize = 0; + while (j < r_list.len) : (j += 2) { if (l_list[i].hash == r_list[j].hash) { if (l_list[i + 1].hash != r_list[j + 1].hash) { return false;