fix missing paren

v2
Brett 2025-01-17 14:48:50 -05:00
parent 28cbc89840
commit 74c1010118
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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<std::uintptr_t>(b) << bit_storage::START_BIT + index);
ptr_bits &= ~(1ul << (bit_storage::START_BIT + index));
ptr_bits |= (static_cast<std::uintptr_t>(b) << (bit_storage::START_BIT + index));
return *this;
}