macho: fix building on 32bit targets

This commit is contained in:
Jakub Konka 2022-09-15 22:13:50 +02:00
parent dc6480dba5
commit 7f7669a09e

View File

@ -1278,7 +1278,7 @@ pub fn createStubHelperPreambleAtom(self: *MachO) !void {
const gpa = self.base.allocator;
const arch = self.base.options.target.cpu.arch;
const size: u64 = switch (arch) {
const size: u5 = switch (arch) {
.x86_64 => 15,
.aarch64 => 6 * @sizeOf(u32),
else => unreachable,