diff --git a/src/entt/entity/sparse_set.hpp b/src/entt/entity/sparse_set.hpp index e0f812e09..425af6be3 100644 --- a/src/entt/entity/sparse_set.hpp +++ b/src/entt/entity/sparse_set.hpp @@ -166,7 +166,7 @@ class basic_sparse_set { // it could be auto but gcc complains and emits a warning due to a false positive [[nodiscard]] std::size_t policy_to_head() const noexcept { - return static_cast(max_size * static_cast(mode != deletion_policy::swap_only)); + return static_cast(max_size * static_cast>(mode != deletion_policy::swap_only)); } [[nodiscard]] auto entity_to_pos(const Entity entt) const noexcept {