mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix to temp allocator reset.
This commit is contained in:
@@ -101,7 +101,7 @@ private fn void! TempAllocator._free(TempAllocator* this, void* old_pointer)
|
||||
private fn void! TempAllocator._reset(TempAllocator* this, usize mark)
|
||||
{
|
||||
TempAllocatorPage *last_page = this.last_page;
|
||||
while (last_page && last_page.mark < mark)
|
||||
while (last_page && last_page.mark >= mark)
|
||||
{
|
||||
TempAllocatorPage *to_free = last_page;
|
||||
last_page = last_page.prev_page;
|
||||
|
||||
Reference in New Issue
Block a user