Fix signedness warning in tests/timeloop.c

tests/timeloop.c: In function ‘read_all’:
tests/timeloop.c:41:21: error: comparison of integer expressions of different signedness: ‘gsize’ {aka ‘long unsigned int’} and ‘int’
   41 |   while (bytes_read < len)
      |                     ^
tests/timeloop.c: In function ‘write_all’:
tests/timeloop.c:65:24: error: comparison of integer expressions of different signedness: ‘gsize’ {aka ‘long unsigned int’} and ‘int’
   65 |   while (bytes_written < len)
      |                        ^
This commit is contained in:
Emmanuel Fleury 2020-11-20 22:11:02 +01:00
parent 026611b5a9
commit 249f46ac76

View File

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