dense_map: suppress warnings due to possible narrowing conversions

This commit is contained in:
Michele Caini
2022-10-27 08:00:41 +02:00
parent 76298bc26a
commit 17578dc8cc

View File

@@ -273,7 +273,7 @@ class dense_map {
template<typename Other>
[[nodiscard]] std::size_t key_to_bucket(const Other &key) const noexcept {
return fast_mod(sparse.second()(key), bucket_count());
return fast_mod(static_cast<size_type>(sparse.second()(key)), bucket_count());
}
template<typename Other>