authorgravatar for robin@voetter.nlRobin Voetter <robin@voetter.nl> 2022-08-10 13:33:02+02:00
committergravatar for robin@voetter.nlRobin Voetter <robin@voetter.nl> 2022-10-12 20:34:41+02:00
log5859d8458f919676be804835aaeb3ed844a67542
tree23240de8e5b599cf8c7c999c1943d2c18dc60b66
parentd638b2e29f8799889b53f559bdde40fe03f2b665
signature Commit is signed but in an unrecognized format.

big int: make Mutable.normalize const


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

lib/std/math/big/int.zig+1-1
...@@ -1845,7 +1845,7 @@ pub const Mutable = struct {...@@ -1845,7 +1845,7 @@ pub const Mutable = struct {
1845 /// [1, 2, 3, 4, 0] -> [1, 2, 3, 4]1845 /// [1, 2, 3, 4, 0] -> [1, 2, 3, 4]
1846 /// [1, 2, 0, 0, 0] -> [1, 2]1846 /// [1, 2, 0, 0, 0] -> [1, 2]
1847 /// [0, 0, 0, 0, 0] -> [0]1847 /// [0, 0, 0, 0, 0] -> [0]
1848 fn normalize(r: *Mutable, length: usize) void {1848 pub fn normalize(r: *Mutable, length: usize) void {
1849 r.len = llnormalize(r.limbs[0..length]);1849 r.len = llnormalize(r.limbs[0..length]);
1850 }1850 }
1851};1851};