stage2: fix compilation on 32-bit arm

This commit is contained in:
Andrew Kelley 2022-10-31 14:21:36 -07:00
parent 841235b3fd
commit cbdc91eb1a

View File

@ -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 {