diff --git a/include/boost/unordered/detail/implementation.hpp b/include/boost/unordered/detail/implementation.hpp index 48ef9beb..546bd7fa 100644 --- a/include/boost/unordered/detail/implementation.hpp +++ b/include/boost/unordered/detail/implementation.hpp @@ -2832,7 +2832,7 @@ namespace boost { void cleanup_spare_functions() { if (current_ & 2) { - current_ &= 1; + current_ = static_cast(current_ & 1); destroy_functions(current_ ^ 1); } } @@ -2840,7 +2840,7 @@ namespace boost { void switch_functions() { BOOST_ASSERT(current_ & 2); - destroy_functions(current_ & 1); + destroy_functions(static_cast(current_ & 1)); current_ ^= 3; }