Fix signedness warning in gio/tests/readwrite.c

gio/tests/readwrite.c: In function ‘verify_iostream’:
gio/tests/readwrite.c:77:17: error: comparison of integer expressions of different signedness: ‘gboolean’ {aka ‘int’} and ‘size_t’ {aka ‘long unsigned int’}
   77 |   g_assert (res == strlen (original_data) - 15);
      |                 ^~
This commit is contained in:
Emmanuel Fleury 2020-11-20 20:29:28 +01:00
parent a965262004
commit 4ad62f7fab

View File

@ -32,6 +32,7 @@ static void
verify_iostream (GFileIOStream *file_iostream)
{
gboolean res;
gssize skipped;
GIOStream *iostream;
GError *error;
GInputStream *in;
@ -73,8 +74,9 @@ verify_iostream (GFileIOStream *file_iostream)
g_assert (res == 5);
verify_pos (iostream, 15);
res = g_input_stream_skip (in, 10000, NULL, NULL);
g_assert (res == strlen (original_data) - 15);
skipped = g_input_stream_skip (in, 10000, NULL, NULL);
g_assert_cmpint (skipped, >=, 0);
g_assert ((gsize) skipped == strlen (original_data) - 15);
verify_pos (iostream, strlen (original_data));
res = g_seekable_seek (G_SEEKABLE (iostream),