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:
Emmanuel Fleury 2020-11-16 23:54:32 +01:00
parent 16ee50a592
commit a39312b14f

View File

@ -214,7 +214,7 @@ g_pollable_output_stream_default_writev_nonblocking (GPollableOutputStream *str
_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;
}