summaryrefslogtreecommitdiff
path: root/src/memory.cc
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-03-02 22:03:20 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-03-02 22:03:20 +0100
commitf291e0418202c48438407a30de9040ea4f0b4211 (patch)
treec842df28a3247f34c2a7c9fc4f3546e60af5c624 /src/memory.cc
parent176b2b462371cd860ac9c6b5d2c1db92ae707e88 (diff)
buffer stack refined
Diffstat (limited to 'src/memory.cc')
-rw-r--r--src/memory.cc2
1 files changed, 1 insertions, 1 deletions
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<typename T>
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) {