From f9b1a5f105277a72276ebda03e9381330532ade6 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Thu, 27 Oct 2022 18:26:46 +0200 Subject: [PATCH] added cast --- include/boost/unordered/detail/foa.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index ebd0db3c..8c5c2fa2 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1559,7 +1559,7 @@ private: prefetch_elements(p); do{ //auto n=unchecked_countr_zero(mask); - auto n=__builtin_ctz((unsigned int)mask); + auto n=(unsigned int)__builtin_ctz((unsigned int)mask); if(BOOST_LIKELY(bool(pred()(x,key_from(p[n]))))){ return {pg,n,p+n}; }