[glib: 2/9] Fix signedness warning in gio/tests/proxy-test.c




commit e7aec308e9a6fe5eab990ee332edfe1241b15d76
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Thu Nov 19 20:38:24 2020 +0100

    Fix signedness warning in gio/tests/proxy-test.c
    
    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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]