From ab308e57bec1819bb7ceadf76ff76f1c7d75999b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Thu, 1 Jun 2023 07:08:26 -0700 Subject: [PATCH] Fixed BX_ALIGNED_NEW. --- include/bx/allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bx/allocator.h b/include/bx/allocator.h index 3562eec..77a8a11 100644 --- a/include/bx/allocator.h +++ b/include/bx/allocator.h @@ -10,7 +10,7 @@ #include "uint32_t.h" #define BX_NEW(_allocator, _type) BX_PLACEMENT_NEW(bx::alloc(_allocator, sizeof(_type) ), _type) -#define BX_ALIGNED_NEW(_allocator, _type, _align) BX_PLACEMENT_NEW(bx::alignedAlloc(_allocator, sizeof(_type), _align), _type) +#define BX_ALIGNED_NEW(_allocator, _type, _align) BX_PLACEMENT_NEW(bx::alloc(_allocator, sizeof(_type), _align), _type) #define BX_PLACEMENT_NEW(_ptr, _type) ::new(bx::PlacementNew, _ptr) _type void* operator new(size_t, bx::PlacementNewTag, void* _ptr);