From e7aec308e9a6fe5eab990ee332edfe1241b15d76 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Thu, 19 Nov 2020 20:38:24 +0100 Subject: [PATCH] Fix signedness warning in gio/tests/proxy-test.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gio/tests/proxy-test.c: In function ‘do_echo_test’: gio/tests/proxy-test.c:855:25: error: comparison of integer expressions of different signedness: ‘gssize’ {aka ‘long int’} and ‘gsize’ {aka ‘long unsigned int’} 855 | for (total = 0; total < nwrote; total += nread) | ^ --- gio/tests/proxy-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/tests/proxy-test.c b/gio/tests/proxy-test.c index e3c0d09c7..eec4bf7ca 100644 --- a/gio/tests/proxy-test.c +++ b/gio/tests/proxy-test.c @@ -842,8 +842,8 @@ do_echo_test (GSocketConnection *conn) GIOStream *iostream = G_IO_STREAM (conn); GInputStream *istream = g_io_stream_get_input_stream (iostream); GOutputStream *ostream = g_io_stream_get_output_stream (iostream); - gssize nread, total; - gsize nwrote; + gssize nread; + gsize nwrote, total; gchar buf[128]; GError *error = NULL;