From 271854cb98e42449dc148262f62cd0866f780139 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 20 Apr 2023 09:58:06 -0500 Subject: [PATCH] changed: closures use temp allocator --- core/builtin.onyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/builtin.onyx b/core/builtin.onyx index 1cea27ae..ef4354a1 100644 --- a/core/builtin.onyx +++ b/core/builtin.onyx @@ -474,7 +474,7 @@ __implicit_bool_cast :: #match -> bool {} changed to a configurable way, but for now it simply allocates out of the heap allocator. """ __closure_block_allocate :: (size: i32) -> rawptr { - return raw_alloc(context.allocator, size); + return raw_alloc(context.temp_allocator, size); } -- 2.25.1