Skip to content

Commit 1daae44

Browse files
committed
patch 7.4.1396
Problem: Compiler warnings for conversions. Solution: Add type cast.
1 parent eed284a commit 1daae44

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/ex_cmds2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3087,8 +3087,8 @@ source_pack_plugin(char_u *fname, void *cookie UNUSED)
30873087
if (strstr((char *)p_rtp, (char *)fname) == NULL)
30883088
{
30893089
/* directory not in 'runtimepath', add it */
3090-
oldlen = STRLEN(p_rtp);
3091-
addlen = STRLEN(fname);
3090+
oldlen = (int)STRLEN(p_rtp);
3091+
addlen = (int)STRLEN(fname);
30923092
new_rtp = alloc(oldlen + addlen + 2);
30933093
if (new_rtp == NULL)
30943094
{
@@ -3130,7 +3130,7 @@ ex_loadplugin(exarg_T *eap)
31303130
int len;
31313131
char *pat;
31323132

3133-
len = STRLEN(pattern) + STRLEN(eap->arg);
3133+
len = (int)STRLEN(pattern) + (int)STRLEN(eap->arg);
31343134
pat = (char *)alloc(len);
31353135
if (pat == NULL)
31363136
return;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,8 @@ static char *(features[]) =
748748

749749
static int included_patches[] =
750750
{ /* Add new patch number below this line */
751+
/**/
752+
1396,
751753
/**/
752754
1395,
753755
/**/

0 commit comments

Comments
 (0)