diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-05 00:28:24 +1100 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-05 00:28:24 +1100 |
commit | e5495790aeba905505152ad3b6690f459a44df03 (patch) | |
tree | 719095667250b5163c05325452179e6779612b7d /src/std/mem.c | |
parent | 9baff5661f2ba8b57e1b0794e490e239b7ef80ca (diff) |
close.
Diffstat (limited to 'src/std/mem.c')
-rw-r--r-- | src/std/mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/std/mem.c b/src/std/mem.c index d7c0f4c..25c9563 100644 --- a/src/std/mem.c +++ b/src/std/mem.c @@ -15,7 +15,7 @@ void* arena_alloc_align(arena* a, size_t size, size_t align) { if (available < 0 || (ptrdiff_t)size > available) { ERROR_EXIT("Arena ran out of memory\n"); } - void* p = a->begin + padding; + void* p = a->curr + padding; a->curr += padding + size; return memset(p, 0, size); } |