summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-04 23:00:06 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-04 23:00:06 +0200
commit878c96d5b9416170dfd28a02cba0db683f91c220 (patch)
tree2158d355ccd92d01cf6641f06d58987898263736 /src/terminal.c
parent333b80acf3a44e462456e6d5730e47ffa449c83d (diff)
downloadvim-git-878c96d5b9416170dfd28a02cba0db683f91c220.tar.gz
patch 8.0.1661: warnings from 64 bit compilerv8.0.1661
Problem: Warnings from 64 bit compiler. Solution: Add type casts. (Mike Williams)
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 326806205..fd30c6512 100644
--- a/src/terminal.c
+++ b/src/terminal.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;