Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-conway committed Dec 15, 2024
1 parent 91b7e28 commit 3194184
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/install/bin.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3194184

Please sign in to comment.