diff --git a/test/entt/entity/group.cpp b/test/entt/entity/group.cpp index 225253b8e..d7e058646 100644 --- a/test/entt/entity/group.cpp +++ b/test/entt/entity/group.cpp @@ -1449,8 +1449,8 @@ TEST(OwningGroup, StableLateInitialization) { for(std::size_t i{}; i < number_of_entities; ++i) { auto entity = registry.create(); - if(!(i % 2u)) registry.emplace(entity); - if(!(i % 3u)) registry.emplace(entity); + if((i % 2u) == 0u) { registry.emplace(entity); } + if((i % 3u) == 0u) { registry.emplace(entity); } } // thanks to @pgruenbacher for pointing out this corner case