diff options
author | Sébastien Wilmet <swilmet@gnome.org> | 2015-08-09 18:50:19 +0200 |
---|---|---|
committer | Sébastien Wilmet <swilmet@gnome.org> | 2015-08-09 18:52:03 +0200 |
commit | 02d2b15699558db412f5761eb14d8dc6f47251da (patch) | |
tree | e5d2d78051b637fdeb8ac0b5a5fc3eac9f9320fd /gtksourceview | |
parent | f09d779a6afaad6935a885a0782699acc231a8e7 (diff) | |
download | gtksourceview-02d2b15699558db412f5761eb14d8dc6f47251da.tar.gz |
BufferInputStream: fix warnings
Diffstat (limited to 'gtksourceview')
-rw-r--r-- | gtksourceview/gtksourcebufferinputstream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtksourceview/gtksourcebufferinputstream.c b/gtksourceview/gtksourcebufferinputstream.c index 7c866db0..b7522a6f 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; |