Fix signedness warning in gio/gdatainputstream.c:read_data()

gio/gdatainputstream.c: In function ‘read_data’:
gio/gdatainputstream.c:313:35: error: comparison of integer expressions of different signedness: ‘gssize’ {aka ‘long int’} and ‘gsize’ {aka ‘long unsigned int’}
  313 |   g_warn_if_fail (res == size);
      |                       ^~
This commit is contained in:
Emmanuel Fleury 2020-11-17 19:03:17 +01:00
parent 579e9e49c5
commit 0c49122949

View File

@ -310,7 +310,7 @@ read_data (GDataInputStream *stream,
res = g_input_stream_read (G_INPUT_STREAM (stream),
buffer, size,
NULL, NULL);
g_warn_if_fail (res == size);
g_warn_if_fail (res >= 0 && (gsize) res == size);
return TRUE;
}