Fix signedness warnings in tests/gobject/timeloop-closure.c

tests/gobject/timeloop-closure.c: In function ‘read_all’:
tests/gobject/timeloop-closure.c:42:21: error: comparison of integer expressions of different signedness: ‘gsize’ {aka ‘long unsigned int’} and ‘int’
   42 |   while (bytes_read < len)
      |                     ^
tests/gobject/timeloop-closure.c: In function ‘write_all’:
tests/gobject/timeloop-closure.c:66:24: error: comparison of integer expressions of different signedness: ‘gsize’ {aka ‘long unsigned int’} and ‘int’
   66 |   while (bytes_written < len)
      |                        ^
This commit is contained in:
Emmanuel Fleury 2020-11-20 21:36:53 +01:00
parent 7c69a1d5f6
commit 7ddcc082e2

View File

@ -33,7 +33,7 @@ io_pipe (GIOChannel **channels)
} }
static gboolean static gboolean
read_all (GIOChannel *channel, char *buf, int len) read_all (GIOChannel *channel, char *buf, gsize len)
{ {
gsize bytes_read = 0; gsize bytes_read = 0;
gsize count; gsize count;
@ -57,7 +57,7 @@ read_all (GIOChannel *channel, char *buf, int len)
} }
static gboolean static gboolean
write_all (GIOChannel *channel, char *buf, int len) write_all (GIOChannel *channel, char *buf, gsize len)
{ {
gsize bytes_written = 0; gsize bytes_written = 0;
gsize count; gsize count;