From 5859d8458f919676be804835aaeb3ed844a67542 Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Wed, 10 Aug 2022 13:33:02 +0200 Subject: [PATCH] big int: make Mutable.normalize const --- lib/std/math/big/int.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/math/big/int.zig b/lib/std/math/big/int.zig index e7c8ed72a2..889f0928e0 100644 --- a/lib/std/math/big/int.zig +++ b/lib/std/math/big/int.zig @@ -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]); } };