mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 08:14:48 +00:00
big int: make Mutable.normalize const
This commit is contained in:
parent
d638b2e29f
commit
5859d8458f
@ -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]);
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user