From 2bb7b0719145cc6ff82de0870e8122e334ca4524 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 7 Oct 2024 10:45:54 +0200 Subject: [PATCH] test: explicit checks + braces --- test/entt/entity/group.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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