diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-03-25 18:44:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-25 18:44:35 +0100 |
| commit | cb8d7a811003b08a7e16c533577fee92113585b1 (patch) | |
| tree | 5d7199b3ed8237a23f2dcf8e61bcaaff402181b9 /src | |
| parent | 6b6dc1cd3ac2690490628e0fee276e143e431b39 (diff) | |
| parent | 22013f1b39434e496acc540fb91c293202540553 (diff) | |
| download | zig-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.zig | 2 |
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, |
