From f291e0418202c48438407a30de9040ea4f0b4211 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Mon, 2 Mar 2026 22:03:20 +0100 Subject: buffer stack refined --- src/memory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/memory.cc') diff --git a/src/memory.cc b/src/memory.cc index bb0ecb1..22977d1 100644 --- a/src/memory.cc +++ b/src/memory.cc @@ -18,7 +18,7 @@ struct Allocator { template T* allocate(const Allocator* allocator, usize n) { - return allocator->allocate(allocator->self, sizeof(T) * n, alignof(T)); + return (T*)allocator->allocate(allocator->self, sizeof(T) * n, alignof(T)); } u8* allocate(const Allocator* allocator, usize size, usize align) { -- cgit v1.2.3