[glib: 3/10] Fix signedness warning in gio/tests/gdbus-proxy.c
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/10] Fix signedness warning in gio/tests/gdbus-proxy.c
- Date: Fri, 23 Apr 2021 09:37:30 +0000 (UTC)
commit 2187406f70b4dc6758fa1d3c97c83a2348ea074a
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Fri Nov 20 19:34:24 2020 +0100
Fix signedness warning in gio/tests/gdbus-proxy.c
gio/tests/gdbus-proxy.c: In function ‘strv_equal’:
gio/tests/gdbus-proxy.c:158:32: error: comparison of integer expressions of different signedness: ‘guint’
{aka ‘unsigned int’} and ‘gint’ {aka ‘int’}
158 | res = g_strv_length (strv) == count;
| ^~
gio/tests/gdbus-proxy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/gdbus-proxy.c b/gio/tests/gdbus-proxy.c
index a2160dcca..7e619c2ac 100644
--- a/gio/tests/gdbus-proxy.c
+++ b/gio/tests/gdbus-proxy.c
@@ -132,7 +132,7 @@ test_methods (GDBusProxy *proxy)
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]