mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 10:07:13 +02: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:
@@ -1015,7 +1015,7 @@ static PerformanceTest tests[] = {
|
|||||||
static PerformanceTest *
|
static PerformanceTest *
|
||||||
find_test (const char *name)
|
find_test (const char *name)
|
||||||
{
|
{
|
||||||
int i;
|
gsize i;
|
||||||
for (i = 0; i < G_N_ELEMENTS (tests); i++)
|
for (i = 0; i < G_N_ELEMENTS (tests); i++)
|
||||||
{
|
{
|
||||||
if (strcmp (tests[i].name, name) == 0)
|
if (strcmp (tests[i].name, name) == 0)
|
||||||
@@ -1051,8 +1051,9 @@ main (int argc,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (i = 0; i < G_N_ELEMENTS (tests); i++)
|
gsize k;
|
||||||
run_test (&tests[i]);
|
for (k = 0; k < G_N_ELEMENTS (tests); k++)
|
||||||
|
run_test (&tests[k]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user