mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-24 00:39:24 +01:00
Fix signedness warning in gio/gpollableoutputstream.c:g_pollable_output_stream_default_writev_nonblocking()
gio/gpollableoutputstream.c: In function ‘g_pollable_output_stream_default_writev_nonblocking’:
gio/gpollableoutputstream.c:217:15: error: comparison of integer expressions of different signedness: ‘gssize’ {aka ‘long int’} and ‘gsize’ {aka ‘const long unsigned int’}
217 | if (res < vectors[i].size)
| ^
This commit is contained in:
@@ -214,7 +214,7 @@ g_pollable_output_stream_default_writev_nonblocking (GPollableOutputStream *str
|
|||||||
|
|
||||||
_bytes_written += res;
|
_bytes_written += res;
|
||||||
/* if we had a short write break the loop here */
|
/* if we had a short write break the loop here */
|
||||||
if (res < vectors[i].size)
|
if ((gsize) res < vectors[i].size)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user