authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-02-14 18:59:07+11:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-02-14 18:59:07+11:00
logb61e53cc40869504ea75fcfd90379f7d3048b82d
tree169107bfa196fe2d14719210c90c47225bb51189
parentfb6b94f80fed42b4c690b43a875bf0a58977493e
signaturelock-open Commit is signed but in an unrecognized format.

std: bigint.deinit() shouldn't need a mutable pointer


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

lib/std/math/big/int.zig+1-2
......@@ -137,10 +137,9 @@ pub const Int = struct {
137137 }
138138
139139 /// Frees all memory associated with an Int.
140 pub fn deinit(self: *Int) void {
140 pub fn deinit(self: Int) void {
141141 self.assertWritable();
142142 self.allocator.?.free(self.limbs);
143 self.* = undefined;
144143 }
145144
146145 /// Clones an Int and returns a new Int with the same value. The new Int is a deep copy and