From 0ec64c3be884f6188edd1c4e418660cf2bf4152d Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sun, 25 Jun 2023 22:07:44 +0200 Subject: [PATCH] Remove broken free check on temp allocator. --- lib/std/core/allocators/temp_allocator.c3 | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/std/core/allocators/temp_allocator.c3 b/lib/std/core/allocators/temp_allocator.c3 index 58a5b4ff4..15a992c07 100644 --- a/lib/std/core/allocators/temp_allocator.c3 +++ b/lib/std/core/allocators/temp_allocator.c3 @@ -88,8 +88,6 @@ fn void*! temp_allocator_function(Allocator* data, usz size, usz alignment, usz fn void! TempAllocator._free(TempAllocator* this, void* old_pointer) @local { - // TODO fix free - assert((uptr)old_pointer >= (uptr)&this.data, "Pointer originates from a different allocator."); usz old_size = *(usz*)(old_pointer - DEFAULT_SIZE_PREFIX); if (old_pointer + old_size == &this.data[this.used]) {