mirror of
https://github.com/ziglang/zig.git
synced 2025-12-20 13:13:16 +00:00
stage2: fix compilation on 32-bit arm
This commit is contained in:
parent
841235b3fd
commit
cbdc91eb1a
@ -11,7 +11,7 @@ pub const Class = union(enum) {
|
|||||||
i64_array: u8,
|
i64_array: u8,
|
||||||
|
|
||||||
fn arrSize(total_size: u64, arr_size: u64) Class {
|
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) {
|
if (arr_size == 32) {
|
||||||
return .{ .i32_array = count };
|
return .{ .i32_array = count };
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user