Răsfoiți Sursa

flow: handle conversion warnings

Michele Caini 1 an în urmă
părinte
comite
c2226ee1f4
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/entt/graph/flow.hpp

+ 1 - 1
src/entt/graph/flow.hpp

@@ -194,7 +194,7 @@ public:
      * @return The requested identifier.
      * @return The requested identifier.
      */
      */
     [[nodiscard]] id_type operator[](const size_type pos) const {
     [[nodiscard]] id_type operator[](const size_type pos) const {
-        return vertices.cbegin()[pos];
+        return vertices.cbegin()[static_cast<typename task_container_type::difference_type>(pos)];
     }
     }
 
 
     /*! @brief Clears the flow builder. */
     /*! @brief Clears the flow builder. */