mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 08:16:24 +01:00
Fix signedness warnings in glib/tests/pattern.c
glib/tests/pattern.c: In function ‘main’: glib/tests/pattern.c:218:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 218 | for (i = 0; i < G_N_ELEMENTS (compile_tests); i++) | ^ glib/tests/pattern.c:225:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 225 | for (i = 0; i < G_N_ELEMENTS (match_tests); i++) | ^ glib/tests/pattern.c:232:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 232 | for (i = 0; i < G_N_ELEMENTS (equal_tests); i++) | ^
This commit is contained in:
parent
be5d48fe77
commit
76b84c5f66
@ -210,28 +210,28 @@ test_equal (gconstpointer d)
|
|||||||
int
|
int
|
||||||
main (int argc, char** argv)
|
main (int argc, char** argv)
|
||||||
{
|
{
|
||||||
gint i;
|
gsize i;
|
||||||
gchar *path;
|
gchar *path;
|
||||||
|
|
||||||
g_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
for (i = 0; i < G_N_ELEMENTS (compile_tests); i++)
|
for (i = 0; i < G_N_ELEMENTS (compile_tests); i++)
|
||||||
{
|
{
|
||||||
path = g_strdup_printf ("/pattern/compile/%d", i);
|
path = g_strdup_printf ("/pattern/compile/%" G_GSIZE_FORMAT, i);
|
||||||
g_test_add_data_func (path, &compile_tests[i], test_compilation);
|
g_test_add_data_func (path, &compile_tests[i], test_compilation);
|
||||||
g_free (path);
|
g_free (path);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < G_N_ELEMENTS (match_tests); i++)
|
for (i = 0; i < G_N_ELEMENTS (match_tests); i++)
|
||||||
{
|
{
|
||||||
path = g_strdup_printf ("/pattern/match/%d", i);
|
path = g_strdup_printf ("/pattern/match/%" G_GSIZE_FORMAT, i);
|
||||||
g_test_add_data_func (path, &match_tests[i], test_match);
|
g_test_add_data_func (path, &match_tests[i], test_match);
|
||||||
g_free (path);
|
g_free (path);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < G_N_ELEMENTS (equal_tests); i++)
|
for (i = 0; i < G_N_ELEMENTS (equal_tests); i++)
|
||||||
{
|
{
|
||||||
path = g_strdup_printf ("/pattern/equal/%d", i);
|
path = g_strdup_printf ("/pattern/equal/%" G_GSIZE_FORMAT, i);
|
||||||
g_test_add_data_func (path, &equal_tests[i], test_equal);
|
g_test_add_data_func (path, &equal_tests[i], test_equal);
|
||||||
g_free (path);
|
g_free (path);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user