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:
Emmanuel Fleury 2020-10-15 13:48:20 +02:00
parent a7fdca46e7
commit d29270db60

View File

@ -219,14 +219,14 @@ test_cleanup (void)
int int
main (int argc, char **argv) main (int argc, char **argv)
{ {
int 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 (tests); i++) 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_test_add_data_func (path, &tests[i], test_collect);
g_free (path); g_free (path);
} }