0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.1396

Problem:    Compiler warnings for conversions.
Solution:   Add type cast.
This commit is contained in:
Bram Moolenaar
2016-02-22 23:25:25 +01:00
parent eed284a169
commit 1daae446e5
2 changed files with 5 additions and 3 deletions

View File

@@ -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;