From 1ad3adfff06b262d15186e6a616fc1d1feec4e83 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Sun, 29 May 2022 12:03:42 +0200 Subject: [PATCH] any: drop pointless cast --- src/entt/core/any.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/core/any.hpp b/src/entt/core/any.hpp index adfb02a54..b93974d21 100644 --- a/src/entt/core/any.hpp +++ b/src/entt/core/any.hpp @@ -107,7 +107,7 @@ class basic_any { break; case operation::compare: if constexpr(!std::is_function_v && !std::is_array_v && is_equality_comparable_v) { - return *static_cast(element) == *static_cast(other) ? other : nullptr; + return *element == *static_cast(other) ? other : nullptr; } else { return (element == other) ? other : nullptr; }