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

gio/gdatainputstream.c: In function ‘scan_for_newline’:
gio/gdatainputstream.c:654:40: error: comparison of integer expressions of different signedness: ‘int’ and ‘gsize’ {aka ‘long unsigned int’}
  654 |   for (i = 0; checked < available && i < peeked; i++)
      |                                        ^
This commit is contained in:
Emmanuel Fleury 2020-11-16 20:41:20 +01:00
parent fc8062d906
commit f2b8921df8

View File

@ -631,7 +631,7 @@ scan_for_newline (GDataInputStream *stream,
GDataInputStreamPrivate *priv; GDataInputStreamPrivate *priv;
const char *buffer; const char *buffer;
gsize start, end, peeked; gsize start, end, peeked;
int i; gsize i;
gssize found_pos; gssize found_pos;
int newline_len; int newline_len;
gsize available, checked; gsize available, checked;