aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/std/math/big/int.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/math/big/int.zig b/lib/std/math/big/int.zig
index 7d8d3a195b..e85e8d292d 100644
--- a/lib/std/math/big/int.zig
+++ b/lib/std/math/big/int.zig
@@ -137,10 +137,9 @@ pub const Int = struct {
}
/// Frees all memory associated with an Int.
- pub fn deinit(self: *Int) void {
+ pub fn deinit(self: Int) void {
self.assertWritable();
self.allocator.?.free(self.limbs);
- self.* = undefined;
}
/// Clones an Int and returns a new Int with the same value. The new Int is a deep copy and