From: Brendan Hansen Date: Thu, 20 Apr 2023 14:58:06 +0000 (-0500) Subject: changed: closures use temp allocator X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=271854cb98e42449dc148262f62cd0866f780139;p=onyx.git changed: closures use temp allocator --- 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); }