big int: make Mutable.normalize const

This commit is contained in:
Robin Voetter 2022-08-10 13:33:02 +02:00
parent d638b2e29f
commit 5859d8458f
No known key found for this signature in database
GPG Key ID: E755662F227CB468

View File

@ -1845,7 +1845,7 @@ pub const Mutable = struct {
/// [1, 2, 3, 4, 0] -> [1, 2, 3, 4]
/// [1, 2, 0, 0, 0] -> [1, 2]
/// [0, 0, 0, 0, 0] -> [0]
fn normalize(r: *Mutable, length: usize) void {
pub fn normalize(r: *Mutable, length: usize) void {
r.len = llnormalize(r.limbs[0..length]);
}
};