mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 05:48:31 +00:00
Sema: fix not reserving enough memory for comptime shl
This commit is contained in:
parent
c9858f833c
commit
edb4a07d4d
@ -3987,7 +3987,7 @@ pub const Value = extern union {
|
||||
const shift = @intCast(usize, rhs.toUnsignedInt(target));
|
||||
const limbs = try arena.alloc(
|
||||
std.math.big.Limb,
|
||||
std.math.big.int.calcTwosCompLimbCount(info.bits),
|
||||
std.math.big.int.calcTwosCompLimbCount(info.bits) + 1,
|
||||
);
|
||||
var result_bigint = BigIntMutable{
|
||||
.limbs = limbs,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user