[glib: 2/11] Fix signedness warning in gio//gsocketcontrolmessage.c:g_socket_control_message_deserialize()




commit be2df3f8b29ac3b7e9b0d987a162ea0b8b454313
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Tue Nov 17 00:44:45 2020 +0100

    Fix signedness warning in gio//gsocketcontrolmessage.c:g_socket_control_message_deserialize()
    
    gio/gsocketcontrolmessage.c: In function ‘g_socket_control_message_deserialize’:
    gio/gsocketcontrolmessage.c:189:17: error: comparison of integer expressions of different signedness: 
‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
      189 |   for (i = 0; i < n_message_types; i++)
          |                 ^

 gio/gsocketcontrolmessage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gsocketcontrolmessage.c b/gio/gsocketcontrolmessage.c
index 7acf6b358..255610c46 100644
--- a/gio/gsocketcontrolmessage.c
+++ b/gio/gsocketcontrolmessage.c
@@ -175,7 +175,7 @@ g_socket_control_message_deserialize (int      level,
   GSocketControlMessage *message;
   GType *message_types;
   guint n_message_types;
-  int i;
+  guint i;
 
   /* Ensure we know about the built in types */
 #ifndef G_OS_WIN32


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