From 1dea700d4f6f3b35b80cb4230671e4ece0d7b144 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Sun, 1 Mar 2026 22:07:29 +0100 Subject: fix aligned_alloc call and strlen --- 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 27504f0..c27c6f3 100644 --- a/src/memory.cc +++ b/src/memory.cc @@ -24,7 +24,7 @@ void deallocate(Allocator* allocator, u8* ptr) { static inline u8* heap_allocate(u8* self, usize size, usize align) { (void)self; - return (u8*)aligned_alloc(size, align); + return (u8*)aligned_alloc(align, size); } static inline void heap_deallocate(u8* self, u8* ptr) { -- cgit v1.2.3