Explorar el Código

sparse_set: avoid annoying warnings

Michele Caini hace 2 años
padre
commit
f4e7e9738f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/entt/entity/sparse_set.hpp

+ 1 - 1
src/entt/entity/sparse_set.hpp

@@ -366,7 +366,7 @@ protected:
             break;
         }
 
-        return --(end() - pos);
+        return --(end() - static_cast<typename iterator::difference_type>(pos));
     }
 
 public: