From 43a30e49838b8cc5fa7c75aa2090ddf8220f416a Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Thu, 15 Oct 2020 10:23:36 +0200 Subject: [PATCH] Fix signedness warning in glib/test/tree.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit glib/tests/tree.c: In function ‘test_tree_traverse’: glib/tests/tree.c:394:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 394 | for (i = 0; i < G_N_ELEMENTS (orders); i++) | ^ --- glib/tests/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/tests/tree.c b/glib/tests/tree.c index 5bf7bd368..8811d962d 100644 --- a/glib/tests/tree.c +++ b/glib/tests/tree.c @@ -333,7 +333,7 @@ static void test_tree_traverse (void) { GTree *tree; - gint i; + gsize i; TraverseData orders[] = { { G_IN_ORDER, -1, "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" }, { G_IN_ORDER, 1, "0" },