dense_set: suppress warnings due to possible narrowing conversions
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user