diff src/channel.c @ 10996:2f041b367cd9 v8.0.0387

patch 8.0.0387: compiler warnings commit https://github.com/vim/vim/commit/b113c3a618113122e62697dd73427261f8c51b2c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 28 21:26:17 2017 +0100 patch 8.0.0387: compiler warnings Problem: compiler warnings Solution: Add type casts. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Tue, 28 Feb 2017 21:30:06 +0100
parents c31782d57569
children e45c6e4d78af
line wrap: on
line diff
--- a/src/channel.c
+++ b/src/channel.c
@@ -1966,7 +1966,7 @@ channel_parse_json(channel_T *channel, c
 	     * more (but still incomplete): set a deadline of 100 msec. */
 	    ch_logn(channel,
 		    "Incomplete message (%d bytes) - wait 100 msec for more",
-		    buflen);
+		    (int)buflen);
 	    reader.js_used = 0;
 	    chanpart->ch_wait_len = buflen;
 #ifdef WIN32
@@ -3299,6 +3299,7 @@ channel_read_block(channel_T *channel, c
 	channel_read(channel, part, "channel_read_block");
     }
 
+    /* We have a complete message now. */
     if (mode == MODE_RAW)
     {
 	msg = channel_get_all(channel, part);