Explorar o código

dense_map: suppress warnings due to possible narrowing conversions

Michele Caini %!s(int64=3) %!d(string=hai) anos
pai
achega
17578dc8cc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/entt/container/dense_map.hpp

+ 1 - 1
src/entt/container/dense_map.hpp

@@ -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>