[glib: 1/6] Fix signedness warning in gio/gliststore.c:g_list_store_splice()




commit 3c461d23964f17afe8687c902d261a5002d6c388
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Mon Nov 16 17:22:57 2020 +0100

    Fix signedness warning in gio/gliststore.c:g_list_store_splice()
    
    gio/gliststore.c: In function ‘g_list_store_splice’:
    gio/gliststore.c:482:21: error: comparison of integer expressions of different signedness: ‘gint’ {aka 
‘int’} and ‘guint’ {aka ‘unsigned int’}
      482 |       for (i = 0; i < n_additions; i++)
          |                     ^

 gio/gliststore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gliststore.c b/gio/gliststore.c
index 3c2361e1b..29dc3fd51 100644
--- a/gio/gliststore.c
+++ b/gio/gliststore.c
@@ -477,7 +477,7 @@ g_list_store_splice (GListStore *store,
 
   if (n_additions)
     {
-      gint i;
+      guint i;
 
       for (i = 0; i < n_additions; i++)
         {


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