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)
      |                         ^
This commit is contained in:
Emmanuel Fleury 2020-11-19 20:38:24 +01:00
parent 8608eccf9a
commit e7aec308e9

View File

@ -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;