diff --git a/CMakeLists.txt b/CMakeLists.txt index 34bb18a..cb338b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 3.0.4) +set(BLT_VERSION 3.0.5) set(BLT_TARGET BLT) diff --git a/include/blt/std/memory_util.h b/include/blt/std/memory_util.h index a399aa0..2c73912 100644 --- a/include/blt/std/memory_util.h +++ b/include/blt/std/memory_util.h @@ -265,8 +265,8 @@ namespace blt::mem { if (index >= bit_storage::END_BIT) return *this; - ptr_bits &= ~(1ul << bit_storage::START_BIT + index); - ptr_bits |= (static_cast(b) << bit_storage::START_BIT + index); + ptr_bits &= ~(1ul << (bit_storage::START_BIT + index)); + ptr_bits |= (static_cast(b) << (bit_storage::START_BIT + index)); return *this; }