[glib: 4/11] Fix signedness warning in gio/gsocketlistener.c:add_sources()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/11] Fix signedness warning in gio/gsocketlistener.c:add_sources()
- Date: Sat, 30 Jan 2021 22:34:42 +0000 (UTC)
commit cd540a228aa42e7c4eda26f27be0443fb39f2ab7
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 11:50:59 2020 +0100
Fix signedness warning in gio/gsocketlistener.c:add_sources()
gio/gsocketlistener.c: In function ‘add_sources’:
gio/gsocketlistener.c:612:17: error: comparison of integer expressions of different signedness: ‘int’ and
‘guint’ {aka ‘unsigned int’}
612 | for (i = 0; i < listener->priv->sockets->len; i++)
| ^
gio/gsocketlistener.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gsocketlistener.c b/gio/gsocketlistener.c
index d11f10ae4..6fd685ba4 100644
--- a/gio/gsocketlistener.c
+++ b/gio/gsocketlistener.c
@@ -606,7 +606,7 @@ add_sources (GSocketListener *listener,
GSocket *socket;
GSource *source;
GList *sources;
- int i;
+ guint i;
sources = NULL;
for (i = 0; i < listener->priv->sockets->len; i++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]