[glib: 7/8] Fix signedness warning in tests/unicode-collate.c




commit 5299ee541ae2afba6c1795eaff78f05291f07711
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Fri Nov 20 22:48:03 2020 +0100

    Fix signedness warning in tests/unicode-collate.c
    
    tests/unicode-collate.c: In function ‘main’:
    tests/unicode-collate.c:77:11: error: comparison of integer expressions of different signedness: ‘int’ 
and ‘guint’ {aka ‘unsigned int’}
       77 |  if (argc > i)
          |           ^

 tests/unicode-collate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/unicode-collate.c b/tests/unicode-collate.c
index b276a2f67..8de3f60ca 100644
--- a/tests/unicode-collate.c
+++ b/tests/unicode-collate.c
@@ -74,7 +74,7 @@ int main (int argc, char **argv)
         }
     }
 
- if (argc > i)
+  if (argc > (gint) i)
     {
       in = g_io_channel_new_file (argv[i], "r", &error);
       if (!in)


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