[glib: 10/11] Fix signedness warning in gio/gdbusdaemon.c:match_new()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 10/11] Fix signedness warning in gio/gdbusdaemon.c:match_new()
- Date: Tue, 19 Jan 2021 10:24:23 +0000 (UTC)
commit f4129932916979ce90a80c68f62e18bd7b89ac95
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 11:26:10 2020 +0100
Fix signedness warning in gio/gdbusdaemon.c:match_new()
gio/gdbusdaemon.c: In function ‘match_new’:
gio/gdbusdaemon.c:449:17: error: comparison of integer expressions of different signedness: ‘int’ and
‘guint’ {aka ‘unsigned int’}
449 | for (i = 0; i < elements->len; i++)
| ^
gio/gdbusdaemon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gdbusdaemon.c b/gio/gdbusdaemon.c
index f62b5ce0e..ef902d65a 100644
--- a/gio/gdbusdaemon.c
+++ b/gio/gdbusdaemon.c
@@ -361,7 +361,7 @@ match_new (const char *str)
MatchElement element;
gboolean eavesdrop;
GDBusMessageType type;
- int i;
+ gsize i;
eavesdrop = FALSE;
type = G_DBUS_MESSAGE_TYPE_INVALID;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]