diff options
author | quou <quou@disroot.org> | 2025-03-17 21:25:30 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-03-17 21:25:30 +1100 |
commit | 73e9205f62fe1c94eb3355e7f0b54ef6f6ff3c4b (patch) | |
tree | 2defaffa4d82befdd9af68b76ec3338dcf96e035 /qstd | |
parent | 750b192a0229ecf401fbe4dd727725a6ef5350d9 (diff) |
fix arena_pop
Diffstat (limited to 'qstd')
-rw-r--r-- | qstd/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qstd/memory.c b/qstd/memory.c index 87618f9..6db9ad9 100644 --- a/qstd/memory.c +++ b/qstd/memory.c @@ -86,7 +86,7 @@ void arena_push(Arena* a) { void arena_pop(Arena* a) { assert(a->last_push); - a->ptr -= a->last_push; + a->ptr = a->last_push; a->last_push = *(int*)&a->buf[a->ptr]; } |