[glib: 5/6] Fix signedness warning in gio/gfileinfo.c:g_file_info_finalize()




commit 872763dbf0c5ee26e1fa3e13bb7d08a25ea0058d
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Mon Nov 16 20:45:35 2020 +0100

    Fix signedness warning in gio/gfileinfo.c:g_file_info_finalize()
    
    gio/gfileinfo.c: In function ‘g_file_info_finalize’:
    gio/gfileinfo.c:327:17: error: comparison of integer expressions of different signedness: ‘int’ and 
‘guint’ {aka ‘unsigned int’}
      327 |   for (i = 0; i < info->attributes->len; i++)
          |                 ^

 gio/gfileinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c
index 1fba1139e..67b261959 100644
--- a/gio/gfileinfo.c
+++ b/gio/gfileinfo.c
@@ -318,7 +318,7 @@ static void
 g_file_info_finalize (GObject *object)
 {
   GFileInfo *info;
-  int i;
+  guint i;
   GFileAttribute *attrs;
 
   info = G_FILE_INFO (object);


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