mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
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:
parent
8312f0b7cf
commit
3b424d746c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user