[glib: 2/8] Fix signedness warning in gobject/tests/signals.c:test_introspection()




commit 805053d09b43161481a4d26729fdc59cfe2b816b
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Mon Nov 16 18:06:23 2020 +0100

    Fix signedness warning in gobject/tests/signals.c:test_introspection()
    
    gobject/tests/signals.c: In function ‘test_introspection’:
    gobject/tests/signals.c:1180:17: error: comparison of integer expressions of different signedness: ‘gint’ 
{aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
     1180 |   for (i = 0; i < n_ids; i++)
          |                 ^

 gobject/tests/signals.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gobject/tests/signals.c b/gobject/tests/signals.c
index ac0ce5102..55d5207ca 100644
--- a/gobject/tests/signals.c
+++ b/gobject/tests/signals.c
@@ -1148,7 +1148,7 @@ test_introspection (void)
   guint *ids;
   guint n_ids;
   const gchar *name;
-  gint i;
+  guint i;
   const gchar *names[] = {
     "simple",
     "simple-detailed",


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