mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 03:47:16 +02:00
Fix warnings in internal foa table about float/size_t conversions
This commit is contained in:
@ -627,7 +627,7 @@ public:
|
|||||||
return arrays.elements?(arrays.groups_size_mask+1)*N-1:0;
|
return arrays.elements?(arrays.groups_size_mask+1)*N-1:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
float load_factor()const noexcept{return float(size())/capacity();}
|
float load_factor()const noexcept{return float(size())/float(capacity());}
|
||||||
float max_load_factor()const noexcept{return mlf;}
|
float max_load_factor()const noexcept{return mlf;}
|
||||||
|
|
||||||
void rehash(std::size_t n)
|
void rehash(std::size_t n)
|
||||||
@ -737,7 +737,7 @@ private:
|
|||||||
else {
|
else {
|
||||||
float fml=mlf*(float)(capacity());
|
float fml=mlf*(float)(capacity());
|
||||||
auto res=(std::numeric_limits<std::size_t>::max)();
|
auto res=(std::numeric_limits<std::size_t>::max)();
|
||||||
if(res>fml)res=(std::size_t)fml;
|
if(res>(std::size_t)fml)res=(std::size_t)fml;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user