mirror of
https://github.com/ziglang/zig.git
synced 2026-01-06 13:33:21 +00:00
macho: fix 32bit build
This commit is contained in:
parent
f026939a40
commit
6874b29308
@ -610,7 +610,7 @@ pub fn flushModule(self: *MachO, comp: *Compilation, prog_node: *std.Progress.No
|
||||
|
||||
var code = std.ArrayList(u8).init(self.base.allocator);
|
||||
defer code.deinit();
|
||||
try code.resize(atom.size);
|
||||
try code.resize(math.cast(usize, atom.size) orelse return error.Overflow);
|
||||
|
||||
const amt = try self.base.file.?.preadAll(code.items, file_offset);
|
||||
if (amt != code.items.len) return error.InputOutput;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user