Skip to content

Commit c2226ee

Browse files
committed
flow: handle conversion warnings
1 parent f17d180 commit c2226ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/entt/graph/flow.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class basic_flow {
194194
* @return The requested identifier.
195195
*/
196196
[[nodiscard]] id_type operator[](const size_type pos) const {
197-
return vertices.cbegin()[pos];
197+
return vertices.cbegin()[static_cast<typename task_container_type::difference_type>(pos)];
198198
}
199199

200200
/*! @brief Clears the flow builder. */

0 commit comments

Comments
 (0)