From a03b88e0eb679ca0fbb79d9c54293e772b4f4a93 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 7 Jan 2022 14:07:35 +0100 Subject: [PATCH] dense_hash_[map/set]: suppress super annoying warnings --- src/entt/container/dense_hash_map.hpp | 2 +- src/entt/container/dense_hash_set.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/container/dense_hash_map.hpp b/src/entt/container/dense_hash_map.hpp index 3467cd2dd..89cb561a1 100644 --- a/src/entt/container/dense_hash_map.hpp +++ b/src/entt/container/dense_hash_map.hpp @@ -909,7 +909,7 @@ public: */ void rehash(const size_type count) { auto value = (std::max)(count, minimum_capacity); - value = std::max(value, size() / max_load_factor()); + value = (std::max)(value, static_cast(size() / max_load_factor())); if(const auto sz = next_power_of_two(value); sz != bucket_count()) { sparse.first().resize(sz); diff --git a/src/entt/container/dense_hash_set.hpp b/src/entt/container/dense_hash_set.hpp index 5a830c019..f5da12f1b 100644 --- a/src/entt/container/dense_hash_set.hpp +++ b/src/entt/container/dense_hash_set.hpp @@ -799,7 +799,7 @@ public: */ void rehash(const size_type count) { auto value = (std::max)(count, minimum_capacity); - value = std::max(value, size() / max_load_factor()); + value = (std::max)(value, static_cast(size() / max_load_factor())); if(const auto sz = next_power_of_two(value); sz != bucket_count()) { sparse.first().resize(sz);