diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-29 23:38:15 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-29 23:38:15 +0100 |
commit | 38d024c6f3d55f1ffbb1597c563ad0ee1625b09f (patch) | |
tree | 1b46ccafc2dd92f8f23bab6b9a2cfb3a4fac2be9 /asl/allocator.cpp | |
parent | 6c035e411328c5f4c523125ad692a6e9afdb0636 (diff) |
Fix use of aligned_alloc on Linux
Diffstat (limited to 'asl/allocator.cpp')
-rw-r--r-- | asl/allocator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asl/allocator.cpp b/asl/allocator.cpp index 645dd22..5dbdce0 100644 --- a/asl/allocator.cpp +++ b/asl/allocator.cpp @@ -18,8 +18,8 @@ void* asl::GlobalHeap::alloc(const layout& layout) static_cast<size_t>(layout.align));
#elif ASL_OS_LINUX
void* ptr = ::aligned_alloc(
- static_cast<size_t>(layout.size),
- static_cast<size_t>(layout.align));
+ static_cast<size_t>(layout.align),
+ static_cast<size_t>(layout.size));
#endif
ASL_ASSERT(ptr != nullptr); // @Todo panic
return ptr;
|