Skip to content

Commit

Permalink
test: suppress a gcc sign-compare warning
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jan 27, 2024
1 parent 38ede6d commit fdbb682
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/entt/entity/registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<double>(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<int>(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;
}
}
Expand Down

0 comments on commit fdbb682

Please sign in to comment.