mirror of
https://github.com/ziglang/zig.git
synced 2025-12-27 16:43:07 +00:00
stage2: fix build on 32-bit targets
Regressed in 85d4c8620f602726b159efe1fe2ea0e07e3c5b59.
This commit is contained in:
parent
85d4c8620f
commit
232f8a291d
@ -13421,7 +13421,7 @@ fn beginComptimePtrMutation(
|
||||
// bytes.len may be one greater than dest_len because of the case when
|
||||
// assigning `[N:S]T` to `[N]T`. This is allowed; the sentinel is omitted.
|
||||
assert(bytes.len >= dest_len);
|
||||
const elems = try arena.alloc(Value, dest_len);
|
||||
const elems = try arena.alloc(Value, @intCast(usize, dest_len));
|
||||
for (elems) |*elem, i| {
|
||||
elem.* = try Value.Tag.int_u64.create(arena, bytes[i]);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user