stage2: fix build on 32-bit targets

Regressed in 85d4c8620f.
This commit is contained in:
Andrew Kelley
2021-12-28 01:15:28 -07:00
parent 85d4c8620f
commit 232f8a291d

View File

@@ -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]);
}