[glib: 2/8] Fix signedness warning in glib/tests/spawn-singlethread.c




commit fcbd9d6d752012cd0209acb0d76d3a9fdb49600f
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Sat Nov 14 13:14:25 2020 +0100

    Fix signedness warning in glib/tests/spawn-singlethread.c
    
    glib/tests/spawn-singlethread.c: In function ‘test_spawn_async_with_fds’:
    glib/tests/spawn-singlethread.c:204:17: error: comparison of integer expressions of different signedness: 
‘int’ and ‘long unsigned int’
      204 |   for (i = 0; i < G_N_ELEMENTS (tests); i++)
          |                 ^

 glib/tests/spawn-singlethread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/spawn-singlethread.c b/glib/tests/spawn-singlethread.c
index ab449eb95..c4417fe19 100644
--- a/glib/tests/spawn-singlethread.c
+++ b/glib/tests/spawn-singlethread.c
@@ -179,7 +179,7 @@ test_spawn_async_with_fds (void)
   int tnum = 1;
   GPtrArray *argv;
   char *arg;
-  int i;
+  gsize i;
 
   /* Each test has 3 variable parameters: stdin, stdout, stderr */
   enum fd_type {


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