[glib: 3/9] Fix signedness warning in gio/tests/mimeapps.c
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/9] Fix signedness warning in gio/tests/mimeapps.c
- Date: Thu, 15 Apr 2021 09:22:18 +0000 (UTC)
commit c3c1f6c4b9da0f5e6dca81fd6cde74fc1466e6ff
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Thu Nov 19 20:45:14 2020 +0100
Fix signedness warning in gio/tests/mimeapps.c
gio/tests/mimeapps.c: In function ‘strv_equal’:
gio/tests/mimeapps.c:31:32: error: comparison of integer expressions of different signedness: ‘guint’
{aka ‘unsigned int’} and ‘gint’ {aka ‘int’}
31 | res = g_strv_length (strv) == count;
| ^~
gio/tests/mimeapps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/mimeapps.c b/gio/tests/mimeapps.c
index 08bcce247..6d7785299 100644
--- a/gio/tests/mimeapps.c
+++ b/gio/tests/mimeapps.c
@@ -5,7 +5,7 @@
static gboolean
strv_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]