mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Fix signedness warnings in glib/tests/markup-escape.c
glib/tests/markup-escape.c: In function ‘main’: glib/tests/markup-escape.c:152:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 152 | for (i = 0; i < G_N_ELEMENTS (escape_tests); i++) | ^ ../glib.git/glib/tests/markup-escape.c:159:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 159 | for (i = 0; i < G_N_ELEMENTS (unichar_tests); i++) | ^
This commit is contained in:
parent
fbb492b3eb
commit
d15260ee69
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user