mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Fix signedness warning in glib/tests/markup-collect.c
glib/tests/markup-collect.c: In function ‘main’: glib/tests/markup-collect.c:227:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ 227 | for (i = 0; i < G_N_ELEMENTS (tests); i++) | ^
This commit is contained in:
parent
a7fdca46e7
commit
d29270db60
@ -219,14 +219,14 @@ test_cleanup (void)
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int i;
|
||||
gsize i;
|
||||
gchar *path;
|
||||
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS (tests); i++)
|
||||
{
|
||||
path = g_strdup_printf ("/markup/collect/%d", i);
|
||||
path = g_strdup_printf ("/markup/collect/%" G_GSIZE_FORMAT, i);
|
||||
g_test_add_data_func (path, &tests[i], test_collect);
|
||||
g_free (path);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user