Explorar o código

dense_map: handle conversion warnings

Michele Caini hai 1 ano
pai
achega
b0bd5f641d
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

@@ -670,7 +670,7 @@ public:
         const auto dist = first - cbegin();
         const auto dist = first - cbegin();
 
 
         for(auto from = last - cbegin(); from != dist; --from) {
         for(auto from = last - cbegin(); from != dist; --from) {
-            erase(packed.first()[from - 1].element.first);
+            erase(packed.first()[static_cast<size_type>(from) - 1u].element.first);
         }
         }
 
 
         return (begin() + dist);
         return (begin() + dist);