authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-07 17:03:29-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-07 17:03:29-07:00
log83a668195526df745362b1174bfd643a0cdfb128
treee8f353036e356d88515d343f18f4bd4ba5d4aea3
parentde81c504b187279e6daba30df9673835f7f6c1eb

link: fix build for 32-bit targets

This wasn't caught by the CI checks because this function is is only called for the `use_stage1` codepath.

1 files changed, 1 insertions(+), 1 deletions(-)

src/link/MachO.zig+1-1
......@@ -1985,7 +1985,7 @@ fn writeAllAtoms(self: *MachO) !void {
19851985
19861986 var buffer = std.ArrayList(u8).init(self.base.allocator);
19871987 defer buffer.deinit();
1988 try buffer.ensureTotalCapacity(sect.size);
1988 try buffer.ensureTotalCapacity(try math.cast(usize, sect.size));
19891989
19901990 log.debug("writing atoms in {s},{s}", .{ commands.segmentName(sect), commands.sectionName(sect) });
19911991