commit 114518c6b0361fccef34a07d20c13f434bce1ef7 (tree)
parent e3b6d347b29da1862a81463b6f0fa928111532ec
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Wed, 7 Feb 2024 21:28:20 +0100
macho: fix 32bit builds
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/link/MachO/Archive.zig b/src/link/MachO/Archive.zig
@@ -231,7 +231,7 @@ pub const ArSymtab = struct {
try writeInt(format, file_off, writer);
}
// Strtab size
- const strtab_size = mem.alignForward(u64, ar.strtab.buffer.items.len, ptr_width);
+ const strtab_size = mem.alignForward(usize, ar.strtab.buffer.items.len, ptr_width);
const padding = strtab_size - ar.strtab.buffer.items.len;
try writeInt(format, strtab_size, writer);
// Strtab