mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
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:
parent
fc8062d906
commit
f2b8921df8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user