aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-04 16:59:03 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-04 16:59:03 -0700
commit9c374eac96779aa1c217f53c4d781fc5c8add938 (patch)
treec38d99b048fb41bc8c70c96192a59cdfd2d9f226
parentb2e28f133e7fbc3d0ba58218f6867fbaeb699d23 (diff)
downloadbun-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.zig4
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,
};