| author | |
| committer | |
| log | b61e53cc40869504ea75fcfd90379f7d3048b82d |
| tree | 169107bfa196fe2d14719210c90c47225bb51189 |
| parent | fb6b94f80fed42b4c690b43a875bf0a58977493e |
| signature |
1 files changed, 1 insertions(+), 2 deletions(-)
lib/std/math/big/int.zig+1-2| ... | ... | @@ -137,10 +137,9 @@ pub const Int = struct { |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | /// Frees all memory associated with an Int. |
| 140 | pub fn deinit(self: *Int) void { | |
| 140 | pub fn deinit(self: Int) void { | |
| 141 | 141 | self.assertWritable(); |
| 142 | 142 | self.allocator.?.free(self.limbs); |
| 143 | self.* = undefined; | |
| 144 | 143 | } |
| 145 | 144 | |
| 146 | 145 | /// Clones an Int and returns a new Int with the same value. The new Int is a deep copy and |