[glib: 7/8] Fix several signedness warnings in gio/tests/converter-stream.c:main()




commit eafc764bb2bac85cf7b8a2b64f6daeb60d0d43c6
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Tue Nov 17 23:46:41 2020 +0100

    Fix several signedness warnings in gio/tests/converter-stream.c:main()
    
    gio/tests/converter-stream.c: In function ‘main’:
    gio/tests/converter-stream.c:1220:17: error: comparison of integer expressions of different signedness: 
‘gint’ {aka ‘int’} and ‘long unsigned int’
     1220 |   for (i = 0; i < G_N_ELEMENTS (compressor_tests); i++)
          |                 ^
    gio/tests/converter-stream.c:1223:17: error: comparison of integer expressions of different signedness: 
‘gint’ {aka ‘int’} and ‘long unsigned int’
     1223 |   for (i = 0; i < G_N_ELEMENTS (truncation_tests); i++)
          |                 ^
    gio/tests/converter-stream.c:1226:17: error: comparison of integer expressions of different signedness: 
‘gint’ {aka ‘int’} and ‘long unsigned int’
     1226 |   for (i = 0; i < G_N_ELEMENTS (charset_tests); i++)
          |                 ^

 gio/tests/converter-stream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/converter-stream.c b/gio/tests/converter-stream.c
index 8bec95c76..45fb6a673 100644
--- a/gio/tests/converter-stream.c
+++ b/gio/tests/converter-stream.c
@@ -1207,7 +1207,7 @@ main (int   argc,
     { "/converter-input-stream/charset/fallbacks", "UTF-8", "Some characters just don't fit into latin1: 
πא", "ISO-8859-1", "Some characters just don't fit into latin1: \\CF\\80\\D7\\90", 4 },
   };
 
-  gint i;
+  gsize i;
 
   g_test_init (&argc, &argv, NULL);
 


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