Skip to content

Commit

Permalink
[cocoex] Fix signed/unsigned bug in for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
olafmersmann committed Apr 16, 2024
1 parent ef31b83 commit 00db744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code-experiments/src/coco_suite.c
Expand Up @@ -792,7 +792,7 @@ coco_suite_t *coco_suite(const char *suite_name, const char *suite_instance, con

/* Check that there are enough dimensions, functions and instances left */
int number_of_active_dimensions = 0;
for (int i = 0; i < suite->number_of_dimensions; ++i) {
for (size_t i = 0; i < suite->number_of_dimensions; ++i) {
number_of_active_dimensions += suite->dimensions[i] != 0;
}
if ((number_of_active_dimensions < 1)
Expand Down

0 comments on commit 00db744

Please sign in to comment.