From faa6e91ed28f311f916554307a713f4c56a5869a Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Thu, 29 Sep 2022 11:16:58 -0700 Subject: [PATCH] Fix conversion warning in reserve() --- 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 4282815b..5d01c776 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -972,7 +972,7 @@ public: void reserve(std::size_t n) { - rehash(std::size_t(std::ceil(n/mlf))); + rehash(std::size_t(std::ceil(static_cast(n)/mlf))); } private: