diff options
| author | Ian Johnson <ian@ianjohnson.dev> | 2024-09-05 23:05:21 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-09-06 10:36:12 -0700 |
| commit | 3543f283208951514c0fdb45b0dde7393e5e40c7 (patch) | |
| tree | bf1b41d57db171388b42e827a0e96c05175b7ef0 /src/Compilation.zig | |
| parent | 3929cac154d71a3e19fd028fc67c1d1d15823ca2 (diff) | |
| download | zig-3543f283208951514c0fdb45b0dde7393e5e40c7.tar.gz zig-3543f283208951514c0fdb45b0dde7393e5e40c7.zip | |
std.math.big.int: fix shiftRight sign handling
Closes #21311
The sign of the result `r` needs to be initialized before the correction
`r.addScalar(r.toConst(), -1)`, or the intended end result could be off
by 2 (depending on the original sign of `r`).
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
