mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
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:
parent
026611b5a9
commit
249f46ac76
@ -32,7 +32,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;
|
||||||
@ -56,7 +56,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;
|
||||||
|
Loading…
Reference in New Issue
Block a user