From cb673135d29b02d08dbb4ce840039ae1d9784962 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Thu, 29 Sep 2022 11:40:13 -0700 Subject: [PATCH] Use static_cast to silence conversion warnings --- include/boost/unordered/detail/foa.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 5d01c776..3ca8095b 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -420,7 +420,7 @@ struct group15 inline int match_available()const { boost::uint64_t x=~(m[0]|m[1]); - boost::uint32_t y=x&(x>>32); + boost::uint32_t y=static_cast(x&(x>>32)); y&=y>>16; return y&0x7FFF; } @@ -428,7 +428,7 @@ struct group15 inline int match_occupied()const { boost::uint64_t x=m[0]|m[1]; - boost::uint32_t y=x|(x>>32); + boost::uint32_t y=static_cast(x|(x>>32)); y|=y>>16; return y&0x7FFF; } @@ -514,7 +514,7 @@ private: BOOST_ASSERT(n<256); boost::uint64_t lo=~(m[0]^mask[n&0xFu]); boost::uint64_t hi=~(m[1]^mask[n>>4])&lo; - boost::uint32_t y=hi&(hi>>32); + boost::uint32_t y=static_cast(hi&(hi>>32)); y&=y>>16; return y&0x7FFF; }