Permalink
Browse files

patch 8.0.1661: warnings from 64 bit compiler

Problem:    Warnings from 64 bit compiler.
Solution:   Add type casts. (Mike Williams)
  • Loading branch information...
brammool committed Apr 4, 2018
1 parent 333b80a commit 878c96d5b9416170dfd28a02cba0db683f91c220
Showing with 4 additions and 2 deletions.
  1. +2 −2 src/terminal.c
  2. +2 −0 src/version.c
@@ -3253,7 +3253,7 @@ handle_call_command(term_T *term, channel_T *channel, listitem_T *item)
argvars[0].v_type = VAR_NUMBER;
argvars[0].vval.v_number = term->tl_buffer->b_fnum;
argvars[1] = item->li_next->li_tv;
if (call_func(func, STRLEN(func), &rettv,
if (call_func(func, (int)STRLEN(func), &rettv,
2, argvars, /* argv_func */ NULL,
/* firstline */ 1, /* lastline */ 1,
&doesrange, /* evaluate */ TRUE,
@@ -3283,7 +3283,7 @@ parse_osc(const char *command, size_t cmdlen, void *user)
if (cmdlen < 3 || STRNCMP(command, "51;", 3) != 0)
return 0; /* not handled */
reader.js_buf = vim_strnsave((char_u *)command + 3, cmdlen - 3);
reader.js_buf = vim_strnsave((char_u *)command + 3, (int)(cmdlen - 3));
if (reader.js_buf == NULL)
return 1;
reader.js_fill = NULL;
@@ -762,6 +762,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1661,
/**/
1660,
/**/

0 comments on commit 878c96d

Please sign in to comment.