zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit cf67d30cdcdd46264e59184ff6a1bf9062a77878 (tree)
parent a090a5e3bcf242e8ed69346d9762d9c2fab6059a
Author: Felix (xq) Queißner <git@mq32.de>
Date:   Thu, 13 Feb 2020 10:37:49 +0100

Makes ArenaAllocator.deinit() not require a mutable reference.

Diffstat:
Mlib/std/heap.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/heap.zig b/lib/std/heap.zig @@ -533,7 +533,7 @@ pub const ArenaAllocator = struct { }; } - pub fn deinit(self: *ArenaAllocator) void { + pub fn deinit(self: ArenaAllocator) void { var it = self.buffer_list.first; while (it) |node| { // this has to occur before the free because the free frees node