commit cbdc91eb1a75e7bfeb1df1170dea219a481b6bfd (tree)
parent 841235b3fd6dfb34e8a036afaf5b25fa9adf92d7
Author: Andrew Kelley <andrew@ziglang.org>
Date: Mon, 31 Oct 2022 14:21:36 -0700
stage2: fix compilation on 32-bit arm
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/arch/arm/abi.zig b/src/arch/arm/abi.zig
@@ -11,7 +11,7 @@ pub const Class = union(enum) {
i64_array: u8,
fn arrSize(total_size: u64, arr_size: u64) Class {
- const count = @intCast(u8, std.mem.alignForward(total_size, arr_size) / arr_size);
+ const count = @intCast(u8, std.mem.alignForwardGeneric(u64, total_size, arr_size) / arr_size);
if (arr_size == 32) {
return .{ .i32_array = count };
} else {