summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Fleury <emmanuel.fleury@gmail.com>2020-10-15 10:36:36 +0200
committerEmmanuel Fleury <emmanuel.fleury@gmail.com>2020-11-13 10:12:16 +0100
commitd15260ee6989d3c6d6e403e7dca76fddef557132 (patch)
tree2a845544e970e25a30b54b315879b67268aed08d
parentfbb492b3eb9d80d4d438e315bcc4da50df97544a (diff)
downloadglib-d15260ee6989d3c6d6e403e7dca76fddef557132.tar.gz
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++) | ^
-rw-r--r--glib/tests/markup-escape.c6
1 files changed, 3 insertions, 3 deletions
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);
}