summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-22 23:25:25 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-22 23:25:25 +0100
commit1daae446e58fd90f98c51ff3af8f54bfa5197751 (patch)
tree600fb0cd04048afbf74cbbd3b7ec4ee6b7a0fd11 /src/ex_cmds2.c
parenteed284a16977ab81fa6da8c9562990ba498acd8c (diff)
patch 7.4.1396v7.4.1396
Problem: Compiler warnings for conversions. Solution: Add type cast.
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 9601409a71..e105fa00ba 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -3087,8 +3087,8 @@ source_pack_plugin(char_u *fname, void *cookie UNUSED)
if (strstr((char *)p_rtp, (char *)fname) == NULL)
{
/* directory not in 'runtimepath', add it */
- oldlen = STRLEN(p_rtp);
- addlen = STRLEN(fname);
+ oldlen = (int)STRLEN(p_rtp);
+ addlen = (int)STRLEN(fname);
new_rtp = alloc(oldlen + addlen + 2);
if (new_rtp == NULL)
{
@@ -3130,7 +3130,7 @@ ex_loadplugin(exarg_T *eap)
int len;
char *pat;
- len = STRLEN(pattern) + STRLEN(eap->arg);
+ len = (int)STRLEN(pattern) + (int)STRLEN(eap->arg);
pat = (char *)alloc(len);
if (pat == NULL)
return;