[gtksourceview: 3/3] BufferInputStream: fix warnings
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview: 3/3] BufferInputStream: fix warnings
- Date: Sun, 9 Aug 2015 16:52:48 +0000 (UTC)
commit 02d2b15699558db412f5761eb14d8dc6f47251da
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Aug 9 18:50:19 2015 +0200
BufferInputStream: fix warnings
gtksourceview/gtksourcebufferinputstream.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcebufferinputstream.c b/gtksourceview/gtksourcebufferinputstream.c
index 7c866db..b7522a6 100644
--- a/gtksourceview/gtksourcebufferinputstream.c
+++ b/gtksourceview/gtksourcebufferinputstream.c
@@ -164,14 +164,14 @@ read_line (GtkSourceBufferInputStream *stream,
gchar *ptr;
gint char_offset;
gint written;
- gsize to_write;
+ glong to_write;
/* Here the line does not fit in the buffer, we thus write
the amount of bytes we can still fit, storing the position
for the next read with the mark. Do not try to write the
new newline in this case, it will be handled in the next
iteration */
- to_write = MIN (space_left, bytes);
+ to_write = MIN ((glong)space_left, bytes);
ptr = buf;
written = 0;
char_offset = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]