[glib: 6/9] Fix signedness warning in gio/tests/gsettings.c




commit 4d52358fe262d555e8bb70dc2a83c0ff190c39bf
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Fri Nov 20 19:24:47 2020 +0100

    Fix signedness warning in gio/tests/gsettings.c
    
    gio/tests/gsettings.c: In function ‘strv_set_equal’:
    gio/tests/gsettings.c:2268:41: error: comparison of integer expressions of different signedness: ‘guint’ 
{aka ‘unsigned int’} and ‘gint’ {aka ‘int’}
     2268 |     res = g_strv_length ((gchar**)strv) == count;
          |                                         ^~

 gio/tests/gsettings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c
index 9e570a1b2..b809090e7 100644
--- a/gio/tests/gsettings.c
+++ b/gio/tests/gsettings.c
@@ -2397,7 +2397,7 @@ strv_has_string (gchar       **haystack,
 static gboolean
 strv_set_equal (gchar **strv, ...)
 {
-  gint count;
+  gsize count;
   va_list list;
   const gchar *str;
   gboolean res;


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