From 3434707ff08b9b9716d59370ea8c115f962d2423 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 19 Apr 2019 07:44:21 -0700 Subject: Fixed parameter issue in ALLOCATE macro --- Graphics/GraphicsEngine/include/EngineMemory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/include/EngineMemory.h b/Graphics/GraphicsEngine/include/EngineMemory.h index ba80de4b..2a47711c 100644 --- a/Graphics/GraphicsEngine/include/EngineMemory.h +++ b/Graphics/GraphicsEngine/include/EngineMemory.h @@ -40,7 +40,7 @@ namespace Diligent IMemoryAllocator& GetStringAllocator(); #define ALLOCATE_RAW(Allocator, Desc, Size) (Allocator).Allocate(Size, Desc, __FILE__, __LINE__) -#define ALLOCATE(Allocator, Desc, Type, Count) reinterpret_cast(ALLOCATE_RAW(Allocator, Desc, sizeof(Type) * Count)) +#define ALLOCATE(Allocator, Desc, Type, Count) reinterpret_cast(ALLOCATE_RAW(Allocator, Desc, sizeof(Type) * (Count))) #define FREE(Allocator, Ptr) Allocator.Free(Ptr) } -- cgit v1.2.3