diff options
| author | Alex Cameron <ascottcameron@gmail.com> | 2020-12-29 16:22:22 +1100 |
|---|---|---|
| committer | Alex Cameron <ascottcameron@gmail.com> | 2021-01-06 00:55:51 +1100 |
| commit | 89286376c627c708e90697cb249a54feb7c827d6 (patch) | |
| tree | 708169d4380f33fb0c2b5a8ef02a313a3f850c6f /lib/std/math/big | |
| parent | 3e8aaee829584f4893cad5c524076d2300f45f24 (diff) | |
| download | zig-89286376c627c708e90697cb249a54feb7c827d6.tar.gz zig-89286376c627c708e90697cb249a54feb7c827d6.zip | |
std: Rename ArrayList shrink => shrinkAndFree
Diffstat (limited to 'lib/std/math/big')
| -rw-r--r-- | lib/std/math/big/int.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/math/big/int.zig b/lib/std/math/big/int.zig index a151163bdc..504083dcce 100644 --- a/lib/std/math/big/int.zig +++ b/lib/std/math/big/int.zig @@ -607,7 +607,7 @@ pub const Mutable = struct { /// it will have the same length as it had when the function was called. pub fn gcd(rma: *Mutable, x: Const, y: Const, limbs_buffer: *std.ArrayList(Limb)) !void { const prev_len = limbs_buffer.items.len; - defer limbs_buffer.shrink(prev_len); + defer limbs_buffer.shrinkAndFree(prev_len); const x_copy = if (rma.limbs.ptr == x.limbs.ptr) blk: { const start = limbs_buffer.items.len; try limbs_buffer.appendSlice(x.limbs); |
