diff options
Diffstat (limited to 'src/memory.cc')
| -rw-r--r-- | src/memory.cc | 2 |
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) { |
