diff --git a/src/entt/container/dense_map.hpp b/src/entt/container/dense_map.hpp index 1f2f6875e..2e046a9c9 100644 --- a/src/entt/container/dense_map.hpp +++ b/src/entt/container/dense_map.hpp @@ -278,7 +278,7 @@ class dense_map { [[nodiscard]] auto constrained_find(const Other &key, const std::size_t bucket) { for(auto offset = sparse.first()[bucket]; offset != placeholder_position; offset = packed.first()[offset].next) { if(packed.second()(packed.first()[offset].element.first, key)) { - return begin() + offset; + return begin() + static_cast(offset); } } @@ -289,7 +289,7 @@ class dense_map { [[nodiscard]] auto constrained_find(const Other &key, const std::size_t bucket) const { for(auto offset = sparse.first()[bucket]; offset != placeholder_position; offset = packed.first()[offset].next) { if(packed.second()(packed.first()[offset].element.first, key)) { - return cbegin() + offset; + return cbegin() + static_cast(offset); } }