aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/mem_pool/mem_pool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/mem_pool/mem_pool.cpp')
-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 872196c86..bc6d97f73 100644
--- a/src/lib/utils/mem_pool/mem_pool.cpp
+++ b/src/lib/utils/mem_pool/mem_pool.cpp
@@ -149,7 +149,7 @@ class BitMap final
BitMap(size_t bits) : m_len(bits)
{
m_bits.resize((bits + BITMASK_BITS - 1) / BITMASK_BITS);
- m_main_mask = static_cast<bitmask_type>(~0);
+ m_main_mask = ~static_cast<bitmask_type>(0);
m_last_mask = m_main_mask;
if(bits % BITMASK_BITS != 0)