Skip to content

Commit

Permalink
patch 8.0.0387: compiler warnings
Browse files Browse the repository at this point in the history
Problem:    compiler warnings
Solution:   Add type casts. (Christian Brabandt)
  • Loading branch information
brammool committed Feb 28, 2017
1 parent 5b3af14 commit b113c3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1966,7 +1966,7 @@ channel_parse_json(channel_T *channel, ch_part_T part)
* 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
Expand Down Expand Up @@ -3299,6 +3299,7 @@ channel_read_block(channel_T *channel, ch_part_T part, int timeout)
channel_read(channel, part, "channel_read_block");
}

/* We have a complete message now. */
if (mode == MODE_RAW)
{
msg = channel_get_all(channel, part);
Expand Down
4 changes: 2 additions & 2 deletions src/memline.c
Original file line number Diff line number Diff line change
Expand Up @@ -1863,7 +1863,7 @@ recover_names(
else
{
#if defined(UNIX) || defined(WIN3264)
int len = STRLEN(dir_name);
int len = (int)STRLEN(dir_name);

p = dir_name + len;
if (after_pathsep(dir_name, p) && len > 1 && p[-1] == p[-2])
Expand Down Expand Up @@ -3924,7 +3924,7 @@ makeswapname(
#endif

#if defined(UNIX) || defined(WIN3264) /* Need _very_ long file names */
int len = STRLEN(dir_name);
int len = (int)STRLEN(dir_name);

s = dir_name + len;
if (after_pathsep(dir_name, s) && len > 1 && s[-1] == s[-2])
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
387,
/**/
386,
/**/
Expand Down

0 comments on commit b113c3a

Please sign in to comment.