From f4e6f2b375fa0beb17a3d116624dcbf7f3151baf Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 31 Mar 2023 15:51:03 +0200 Subject: [PATCH] group: suppress shadow warning --- src/entt/entity/group.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/entity/group.hpp b/src/entt/entity/group.hpp index abbe5c61e..c05e2556e 100644 --- a/src/entt/entity/group.hpp +++ b/src/entt/entity/group.hpp @@ -153,10 +153,10 @@ public: } } - size_type owned(const id_type *elem, size_type len) const noexcept final { + size_type owned(const id_type *elem, size_type length) const noexcept final { size_type cnt = 0u; - for(auto pos = 0u; pos < len; ++pos) { + for(auto pos = 0u; pos < length; ++pos) { cnt += ((elem[pos] == entt::type_hash::value()) || ...); }