summaryrefslogtreecommitdiff
path: root/gio/goutputstream.c
diff options
context:
space:
mode:
authorEmmanuel Fleury <emmanuel.fleury@gmail.com>2020-11-16 23:51:33 +0100
committerEmmanuel Fleury <emmanuel.fleury@gmail.com>2021-01-11 20:45:27 +0100
commit16ee50a59213643f9626aaa639a4bef17479bf66 (patch)
tree8e3388b8142aaf332a47f82916bbe109f0d69d3d /gio/goutputstream.c
parent6e3d30a105b88558e748f9177d8d7f254c02a39d (diff)
downloadglib-16ee50a59213643f9626aaa639a4bef17479bf66.tar.gz
Fix signedness warning in gio/goutputstream.c:g_output_stream_real_writev()
gio/goutputstream.c: In function ‘g_output_stream_real_writev’: gio/goutputstream.c:2347:15: error: comparison of integer expressions of different signedness: ‘gssize’ {aka ‘long int’} and ‘gsize’ {aka ‘const long unsigned int’} 2347 | if (res < vectors[i].size) | ^
Diffstat (limited to 'gio/goutputstream.c')
-rw-r--r--gio/goutputstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/goutputstream.c b/gio/goutputstream.c
index 9e2848e37..8e48803be 100644
--- a/gio/goutputstream.c
+++ b/gio/goutputstream.c
@@ -2344,7 +2344,7 @@ g_output_stream_real_writev (GOutputStream *stream,
_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;
}