Use explicit cast for when KeyEqual returns a size_t type

This commit is contained in:
Christian Mazakas
2022-10-12 13:39:43 -07:00
parent 4399e8b360
commit 1c14bc1215

View File

@ -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<bool>(pred()(x,key_from(p[n]))))){
return {pg,n,p+n};
}
mask&=mask-1;