From ae442e2c2906f768098de307f3388ef0e8d47e5b Mon Sep 17 00:00:00 2001 From: David Rubin Date: Thu, 20 Mar 2025 22:16:57 -0700 Subject: big.int: return normalized results from `{add,sub}Carry` --- src/Value.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Value.zig') diff --git a/src/Value.zig b/src/Value.zig index 7357c0f225..7e9e13ef38 100644 --- a/src/Value.zig +++ b/src/Value.zig @@ -2223,7 +2223,7 @@ pub fn shlSatScalar( const shift: usize = @intCast(rhs.toUnsignedInt(zcu)); const limbs = try arena.alloc( std.math.big.Limb, - std.math.big.int.calcTwosCompLimbCount(info.bits) + 1, + std.math.big.int.calcTwosCompLimbCount(info.bits), ); var result_bigint = BigIntMutable{ .limbs = limbs, -- cgit v1.2.3