| author | |
| committer | |
| log | 7c37c55161b718ff3df0b6c76480a4d538519a84 |
| tree | 5ee82b02a09908dbb67532b0d52ff13a8d7c143f |
| parent | 8541119e9b57b274fa01f1dae101adca5ac2245f |
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 | 2475 | defer tracy.end(); |
| 2476 | 2476 | const doWork = struct { |
| 2477 | 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 | 2479 | const size = th.size(); |
| 2480 | 2480 | var stream = std.io.fixedBufferStream(buffer[off..][0..size]); |
| 2481 | 2481 | try th.write(macho_file, stream.writer()); |