Browse Source

sparse_set: avoid annoying warnings

Michele Caini 2 years ago
parent
commit
f4e7e9738f
1 changed files with 1 additions and 1 deletions
  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: