authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-07-22 17:32:43+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-07-22 17:32:43+02:00
log7c37c55161b718ff3df0b6c76480a4d538519a84
tree5ee82b02a09908dbb67532b0d52ff13a8d7c143f
parent8541119e9b57b274fa01f1dae101adca5ac2245f

macho: fix 32bit compilation issues


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

src/link/MachO.zig+1-1
......@@ -2475,7 +2475,7 @@ fn writeThunkWorker(self: *MachO, thunk: Thunk) void {
24752475 defer tracy.end();
24762476 const doWork = struct {
24772477 fn doWork(th: Thunk, buffer: []u8, macho_file: *MachO) !void {
2478 const off = th.value;
2478 const off = math.cast(usize, th.value) orelse return error.Overflow;
24792479 const size = th.size();
24802480 var stream = std.io.fixedBufferStream(buffer[off..][0..size]);
24812481 try th.write(macho_file, stream.writer());