[glib: 3/6] Fix signedness warning in gio/gdatainputstream.c:scan_for_newline()
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/6] Fix signedness warning in gio/gdatainputstream.c:scan_for_newline()
- Date: Thu, 17 Dec 2020 13:25:28 +0000 (UTC)
commit f2b8921df885b623edd2730b3f0db0368c951c76
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 20:41:20 2020 +0100
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++)
| ^
gio/gdatainputstream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gdatainputstream.c b/gio/gdatainputstream.c
index 2e7750cb5..1c7a5bef2 100644
--- a/gio/gdatainputstream.c
+++ b/gio/gdatainputstream.c
@@ -631,7 +631,7 @@ scan_for_newline (GDataInputStream *stream,
GDataInputStreamPrivate *priv;
const char *buffer;
gsize start, end, peeked;
- int i;
+ gsize i;
gssize found_pos;
int newline_len;
gsize available, checked;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]