From e2364280b050f98354909d45fb2dc9a4e4773170 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Mon, 4 Mar 2024 11:21:43 -0500 Subject: [PATCH] destory alloc fix --- include/blt/std/allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/blt/std/allocator.h b/include/blt/std/allocator.h index 5e8f98a..e4df35f 100644 --- a/include/blt/std/allocator.h +++ b/include/blt/std/allocator.h @@ -482,7 +482,7 @@ namespace blt template void deallocate(T* p) { - auto* ptr = static_cast(p); + auto* ptr = reinterpret_cast(p); blt::i64 remove_index = -1; for (auto e : blt::enumerate(blocks)) {