dense_set: suppress warnings due to possible narrowing conversions

This commit is contained in:
Michele Caini
2022-10-27 08:01:29 +02:00
parent c7d5053536
commit f935bbccee

View File

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