authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-28 01:15:28-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-28 01:15:36-07:00
log232f8a291d2debd8a0fe9df2ce36d9035a15aefb
tree3c098cf64e3b5da56b99175a77ab914aa22939b7
parent85d4c8620f602726b159efe1fe2ea0e07e3c5b59

stage2: fix build on 32-bit targets

Regressed in 85d4c8620f602726b159efe1fe2ea0e07e3c5b59.

1 files changed, 1 insertions(+), 1 deletions(-)

src/Sema.zig+1-1
...@@ -13421,7 +13421,7 @@ fn beginComptimePtrMutation(...@@ -13421,7 +13421,7 @@ fn beginComptimePtrMutation(
13421 // bytes.len may be one greater than dest_len because of the case when13421 // bytes.len may be one greater than dest_len because of the case when
13422 // assigning `[N:S]T` to `[N]T`. This is allowed; the sentinel is omitted.13422 // assigning `[N:S]T` to `[N]T`. This is allowed; the sentinel is omitted.
13423 assert(bytes.len >= dest_len);13423 assert(bytes.len >= dest_len);
13424 const elems = try arena.alloc(Value, dest_len);13424 const elems = try arena.alloc(Value, @intCast(usize, dest_len));
13425 for (elems) |*elem, i| {13425 for (elems) |*elem, i| {
13426 elem.* = try Value.Tag.int_u64.create(arena, bytes[i]);13426 elem.* = try Value.Tag.int_u64.create(arena, bytes[i]);
13427 }13427 }