diff options
author | 2023-07-04 16:59:03 -0700 | |
---|---|---|
committer | 2023-07-04 16:59:03 -0700 | |
commit | 9c374eac96779aa1c217f53c4d781fc5c8add938 (patch) | |
tree | c38d99b048fb41bc8c70c96192a59cdfd2d9f226 | |
parent | b2e28f133e7fbc3d0ba58218f6867fbaeb699d23 (diff) | |
download | bun-9c374eac96779aa1c217f53c4d781fc5c8add938.tar.gz bun-9c374eac96779aa1c217f53c4d781fc5c8add938.tar.zst bun-9c374eac96779aa1c217f53c4d781fc5c8add938.zip |
Fix build determinism issue (thanks to @alexlamsl)
cc @dylan-conway this was the cause
-rw-r--r-- | src/renamer.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renamer.zig b/src/renamer.zig index 8f6af149f..5c7177577 100644 --- a/src/renamer.zig +++ b/src/renamer.zig @@ -291,8 +291,8 @@ pub const MinifyRenamer = struct { try sorted.ensureUnusedCapacity(slots.items.len); sorted.items.len = slots.items.len; - for (sorted.items, 0..) |*slot, i| { - slot.* = SlotAndCount{ + for (sorted.items, slots.items, 0..) |*elem, slot, i| { + elem.* = SlotAndCount{ .slot = @intCast(u32, i), .count = slot.count, }; |