Fix signedness warnings in tests/gobject/performance.c

tests/gobject/performance.c: In function ‘find_test’:
tests/gobject/performance.c:1019:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
 1019 |   for (i = 0; i < G_N_ELEMENTS (tests); i++)
      |                 ^
tests/gobject/performance.c: In function ‘main’:
tests/gobject/performance.c:1054:21: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
 1054 |       for (i = 0; i < G_N_ELEMENTS (tests); i++)
      |                     ^
This commit is contained in:
Emmanuel Fleury 2020-11-20 21:30:02 +01:00
parent 8312f0b7cf
commit 3b424d746c

View File

@ -1015,7 +1015,7 @@ static PerformanceTest tests[] = {
static PerformanceTest *
find_test (const char *name)
{
int i;
gsize i;
for (i = 0; i < G_N_ELEMENTS (tests); i++)
{
if (strcmp (tests[i].name, name) == 0)
@ -1051,8 +1051,9 @@ main (int argc,
}
else
{
for (i = 0; i < G_N_ELEMENTS (tests); i++)
run_test (&tests[i]);
gsize k;
for (k = 0; k < G_N_ELEMENTS (tests); k++)
run_test (&tests[k]);
}
return 0;