commit 7f7669a09e398b5b5856edf0795ed25dfd28405b (tree)
parent dc6480dba5ec4533f6a20292f93fe5c25a1a689f
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Thu, 15 Sep 2022 22:13:50 +0200
macho: fix building on 32bit targets
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/link/MachO.zig b/src/link/MachO.zig
@@ -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,