From 1c14bc1215e39a2a1918892c80adce819f4072e4 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Wed, 12 Oct 2022 13:39:43 -0700 Subject: [PATCH] Use explicit cast for when KeyEqual returns a size_t type --- 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 dfa99753..614654a3 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1381,7 +1381,7 @@ private: prefetch_elements(p); do{ auto n=unchecked_countr_zero(mask); - if(BOOST_LIKELY(pred()(x,key_from(p[n])))){ + if(BOOST_LIKELY(static_cast(pred()(x,key_from(p[n]))))){ return {pg,n,p+n}; } mask&=mask-1;