authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-04-18 06:54:46-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-04-18 16:41:54-07:00
logedb4a07d4ddf01c7f4d589b0f427ba6b9e03134b
treec1068b403f19882d6f956633f548497d716cf63f
parentc9858f833c2e1d5ef414af7e01d465baa88ef9cc

Sema: fix not reserving enough memory for comptime shl


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

src/value.zig+1-1
...@@ -3987,7 +3987,7 @@ pub const Value = extern union {...@@ -3987,7 +3987,7 @@ pub const Value = extern union {
3987 const shift = @intCast(usize, rhs.toUnsignedInt(target));3987 const shift = @intCast(usize, rhs.toUnsignedInt(target));
3988 const limbs = try arena.alloc(3988 const limbs = try arena.alloc(
3989 std.math.big.Limb,3989 std.math.big.Limb,
3990 std.math.big.int.calcTwosCompLimbCount(info.bits),3990 std.math.big.int.calcTwosCompLimbCount(info.bits) + 1,
3991 );3991 );
3992 var result_bigint = BigIntMutable{3992 var result_bigint = BigIntMutable{
3993 .limbs = limbs,3993 .limbs = limbs,