mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
579e9e49c5
commit
0c49122949
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user