aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/mem_pool
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-10-01 05:28:59 -0400
committerJack Lloyd <[email protected]>2018-10-01 05:28:59 -0400
commitb96189789154222a8de57e31deb457be4208b4b3 (patch)
tree3e507015919fe4c73ccdabd3903fdcf178d5fd1b /src/lib/utils/mem_pool
parent388530b25b3de0e33f85612d91721dc190b3347d (diff)
Fix more MSVC warnings
Diffstat (limited to 'src/lib/utils/mem_pool')
-rw-r--r--src/lib/utils/mem_pool/mem_pool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/mem_pool/mem_pool.cpp b/src/lib/utils/mem_pool/mem_pool.cpp
index d25343383..e052c10e7 100644
--- a/src/lib/utils/mem_pool/mem_pool.cpp
+++ b/src/lib/utils/mem_pool/mem_pool.cpp
@@ -63,7 +63,7 @@ Memory_Pool::Memory_Pool(uint8_t* pool,
void* Memory_Pool::allocate(size_t req)
{
- const size_t alignment = (1 << m_align_bit);
+ const size_t alignment = (static_cast<size_t>(1) << m_align_bit);
if(req > m_pool_size)
return nullptr;