[glib: 7/10] Fix signedness warning in gio/tests/socket-common.c




commit f587095cfc3b2125bdebf99dde0ba4f886bba130
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Fri Nov 20 19:48:52 2020 +0100

    Fix signedness warning in gio/tests/socket-common.c
    
    gio/tests/socket-common.c: In function ‘socket_address_from_string’:
    gio/tests/socket-common.c:50:17: error: comparison of integer expressions of different signedness: ‘int’ 
and ‘long unsigned int’
       50 |   for (i = 0; i < G_N_ELEMENTS (unix_socket_address_types); i++)
          |                 ^

 gio/tests/socket-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/socket-common.c b/gio/tests/socket-common.c
index e59fa9cd4..18d083a30 100644
--- a/gio/tests/socket-common.c
+++ b/gio/tests/socket-common.c
@@ -45,7 +45,7 @@ static GSocketAddress *
 socket_address_from_string (const char *name)
 {
 #ifdef G_OS_UNIX
-  int i, len;
+  gsize i, len;
 
   for (i = 0; i < G_N_ELEMENTS (unix_socket_address_types); i++)
     {


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