From f3476de893010959c8918970e85c4c6e47d0e236 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 10 Jan 2018 11:35:42 +0000 Subject: [PATCH] Some explicit casts to avoid warnings on old GCC --- include/boost/unordered/detail/implementation.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }