diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index 9c35d1d68..92b69ce78 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -944,7 +944,7 @@ public: */ template void compact() { - if constexpr(sizeof...(Type) == 0) { + if constexpr(sizeof...(Type) == 0u) { for(auto &&curr: pools) { curr.second->compact(); } @@ -1042,7 +1042,7 @@ public: */ template [[nodiscard]] auto try_get([[maybe_unused]] const entity_type entt) const { - if constexpr(sizeof...(Type) == 1) { + if constexpr(sizeof...(Type) == 1u) { const auto &cpool = assure...>(); return cpool->contains(entt) ? std::addressof(cpool->get(entt)) : nullptr; } else { @@ -1053,7 +1053,7 @@ public: /*! @copydoc try_get */ template [[nodiscard]] auto try_get([[maybe_unused]] const entity_type entt) { - if constexpr(sizeof...(Type) == 1) { + if constexpr(sizeof...(Type) == 1u) { return (const_cast(std::as_const(*this).template try_get(entt)), ...); } else { return std::make_tuple(try_get(entt)...); @@ -1066,7 +1066,7 @@ public: */ template void clear() { - if constexpr(sizeof...(Type) == 0) { + if constexpr(sizeof...(Type) == 0u) { ENTT_ASSERT(!pools.empty() && (pools.begin()->second.get() == shortcut), "Misplaced entity pool"); for(size_type pos = pools.size() - 1u; pos; --pos) {