aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-03-25 18:44:35 +0100
committerGitHub <noreply@github.com>2025-03-25 18:44:35 +0100
commitcb8d7a811003b08a7e16c533577fee92113585b1 (patch)
tree5d7199b3ed8237a23f2dcf8e61bcaaff402181b9 /src
parent6b6dc1cd3ac2690490628e0fee276e143e431b39 (diff)
parent22013f1b39434e496acc540fb91c293202540553 (diff)
downloadzig-cb8d7a811003b08a7e16c533577fee92113585b1.tar.gz
zig-cb8d7a811003b08a7e16c533577fee92113585b1.zip
Merge pull request #23310 from Rexicon226/fix-23309
big.int: return normalized results from `{add,sub}Carry`
Diffstat (limited to 'src')
-rw-r--r--src/Value.zig2
1 files changed, 1 insertions, 1 deletions
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,