From 208ca9fafdbf53bb41213834bba697cad2b4ff5d Mon Sep 17 00:00:00 2001 From: assiduous Date: Thu, 13 Feb 2020 11:29:06 -0800 Subject: FixedBlockMemoryAllocator: fixed issue with block size alignment by sizeof(void*) --- Common/interface/FixedBlockMemoryAllocator.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Common/interface') diff --git a/Common/interface/FixedBlockMemoryAllocator.hpp b/Common/interface/FixedBlockMemoryAllocator.hpp index a21e41d1..89c9e355 100644 --- a/Common/interface/FixedBlockMemoryAllocator.hpp +++ b/Common/interface/FixedBlockMemoryAllocator.hpp @@ -229,8 +229,8 @@ private: std::mutex m_Mutex; IMemoryAllocator& m_RawMemoryAllocator; - size_t m_BlockSize; - Uint32 m_NumBlocksInPage; + const size_t m_BlockSize; + const Uint32 m_NumBlocksInPage; }; IMemoryAllocator& GetRawAllocator(); -- cgit v1.2.3