From f587095cfc3b2125bdebf99dde0ba4f886bba130 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Fri, 20 Nov 2020 19:48:52 +0100 Subject: [PATCH] Fix signedness warning in gio/tests/socket-common.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gio/tests/socket-common.c: In function ‘socket_address_from_string’: gio/tests/socket-common.c:50:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ 50 | for (i = 0; i < G_N_ELEMENTS (unix_socket_address_types); i++) | ^ --- gio/tests/socket-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/socket-common.c b/gio/tests/socket-common.c index e59fa9cd4..18d083a30 100644 --- a/gio/tests/socket-common.c +++ b/gio/tests/socket-common.c @@ -45,7 +45,7 @@ static GSocketAddress * socket_address_from_string (const char *name) { #ifdef G_OS_UNIX - int i, len; + gsize i, len; for (i = 0; i < G_N_ELEMENTS (unix_socket_address_types); i++) {