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 {...@@ -2475,7 +2475,7 @@ fn writeThunkWorker(self: *MachO, thunk: Thunk) void {
2475 defer tracy.end();2475 defer tracy.end();
2476 const doWork = struct {2476 const doWork = struct {
2477 fn doWork(th: Thunk, buffer: []u8, macho_file: *MachO) !void {2477 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;
2479 const size = th.size();2479 const size = th.size();
2480 var stream = std.io.fixedBufferStream(buffer[off..][0..size]);2480 var stream = std.io.fixedBufferStream(buffer[off..][0..size]);
2481 try th.write(macho_file, stream.writer());2481 try th.write(macho_file, stream.writer());