mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Fix signedness warning in gio/goutputstream.c:g_output_stream_real_writev()
gio/goutputstream.c: In function ‘g_output_stream_real_writev’: gio/goutputstream.c:2347:15: error: comparison of integer expressions of different signedness: ‘gssize’ {aka ‘long int’} and ‘gsize’ {aka ‘const long unsigned int’} 2347 | if (res < vectors[i].size) | ^
This commit is contained in:
@@ -2344,7 +2344,7 @@ g_output_stream_real_writev (GOutputStream *stream,
|
||||
|
||||
_bytes_written += res;
|
||||
/* if we had a short write break the loop here */
|
||||
if (res < vectors[i].size)
|
||||
if ((gsize) res < vectors[i].size)
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user