[glib: 1/15] Fix signedness warning in glib/test/tree.c




commit 43a30e49838b8cc5fa7c75aa2090ddf8220f416a
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Thu Oct 15 10:23:36 2020 +0200

    Fix signedness warning in glib/test/tree.c
    
    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" },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]