From 25dff4bddcb24902da453f4bc837639f5e042e20 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 24 Jan 2025 15:35:02 +0100 Subject: [PATCH] sparse_set: suppress a wrong warning by gcc - see #1194 --- src/entt/entity/sparse_set.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {