From e112876796b35008f0152a2d659b6247bb4c6ead Mon Sep 17 00:00:00 2001 From: xeals Date: Sat, 2 Dec 2023 18:36:35 +1100 Subject: [PATCH] Fix GPA decl --- src/util.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.zig b/src/util.zig index e6e4e05..b32ab82 100644 --- a/src/util.zig +++ b/src/util.zig @@ -1,4 +1,4 @@ const std = @import("std"); -const gpa_impl = std.heap.GeneralPurposeAllocator(.{}); +var gpa_impl = std.heap.GeneralPurposeAllocator(.{}){}; pub const gpa = gpa_impl.allocator();