diff --git a/glib/tests/markup-escape.c b/glib/tests/markup-escape.c index 2d5de854d..44290fed9 100644 --- a/glib/tests/markup-escape.c +++ b/glib/tests/markup-escape.c @@ -144,21 +144,21 @@ format_test (void) int main (int argc, char **argv) { - gint i; + gsize i; gchar *path; g_test_init (&argc, &argv, NULL); for (i = 0; i < G_N_ELEMENTS (escape_tests); i++) { - path = g_strdup_printf ("/markup/escape-text/%d", i); + path = g_strdup_printf ("/markup/escape-text/%" G_GSIZE_FORMAT, i); g_test_add_data_func (path, &escape_tests[i], escape_test); g_free (path); } for (i = 0; i < G_N_ELEMENTS (unichar_tests); i++) { - path = g_strdup_printf ("/markup/escape-unichar/%d", i); + path = g_strdup_printf ("/markup/escape-unichar/%" G_GSIZE_FORMAT, i); g_test_add_data_func (path, &unichar_tests[i], unichar_test); g_free (path); }