diff --git a/test/entt/entity/registry.cpp b/test/entt/entity/registry.cpp index e82a378bf2..85f211648d 100644 --- a/test/entt/entity/registry.cpp +++ b/test/entt/entity/registry.cpp @@ -583,28 +583,28 @@ TEST(Registry, CreateClearCycle) { const std::size_t second_iteration = 7u; const std::size_t third_iteration = 5u; - for(int i = 0; i < first_iteration; ++i) { + for(std::size_t i{}; i < first_iteration; ++i) { const auto entity = registry.create(); registry.emplace(entity); } registry.clear(); - for(int i = 0; i < second_iteration; ++i) { + for(std::size_t i{}; i < second_iteration; ++i) { const auto entity = registry.create(); registry.emplace(entity); - if(i == 3) { + if(i == 3u) { pre = entity; } } registry.clear(); - for(int i = 0; i < third_iteration; ++i) { + for(std::size_t i{}; i < third_iteration; ++i) { const auto entity = registry.create(); - if(i == 3) { + if(i == 3u) { post = entity; } }