Explorar el Código

dense_set: suppress warnings due to possible narrowing conversions

Michele Caini hace 3 años
padre
commit
ccedacec8c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/entt/container/dense_set.hpp

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

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