Explorar el Código

set: avoid implicit conversion warnings

skypjack hace 2 días
padre
commit
473d8c74c9
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

@@ -862,7 +862,7 @@ public:
         packed.first().reserve(cnt);
         const auto next = static_cast<double>(cnt) / max_load_factor();
         const auto trunc = static_cast<stl::size_t>(next);
-        rehash(trunc + static_cast<stl::size_t>(next > trunc));
+        rehash(trunc + static_cast<stl::size_t>(next > static_cast<double>(trunc)));
     }
 
     /**