mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 03:47:16 +02:00
Fix conversion warning in reserve()
This commit is contained in:
@ -972,7 +972,7 @@ public:
|
|||||||
|
|
||||||
void reserve(std::size_t n)
|
void reserve(std::size_t n)
|
||||||
{
|
{
|
||||||
rehash(std::size_t(std::ceil(n/mlf)));
|
rehash(std::size_t(std::ceil(static_cast<float>(n)/mlf)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user