mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 7.4.1396
Problem: Compiler warnings for conversions. Solution: Add type cast.
This commit is contained in:
@@ -3087,8 +3087,8 @@ source_pack_plugin(char_u *fname, void *cookie UNUSED)
|
|||||||
if (strstr((char *)p_rtp, (char *)fname) == NULL)
|
if (strstr((char *)p_rtp, (char *)fname) == NULL)
|
||||||
{
|
{
|
||||||
/* directory not in 'runtimepath', add it */
|
/* directory not in 'runtimepath', add it */
|
||||||
oldlen = STRLEN(p_rtp);
|
oldlen = (int)STRLEN(p_rtp);
|
||||||
addlen = STRLEN(fname);
|
addlen = (int)STRLEN(fname);
|
||||||
new_rtp = alloc(oldlen + addlen + 2);
|
new_rtp = alloc(oldlen + addlen + 2);
|
||||||
if (new_rtp == NULL)
|
if (new_rtp == NULL)
|
||||||
{
|
{
|
||||||
@@ -3130,7 +3130,7 @@ ex_loadplugin(exarg_T *eap)
|
|||||||
int len;
|
int len;
|
||||||
char *pat;
|
char *pat;
|
||||||
|
|
||||||
len = STRLEN(pattern) + STRLEN(eap->arg);
|
len = (int)STRLEN(pattern) + (int)STRLEN(eap->arg);
|
||||||
pat = (char *)alloc(len);
|
pat = (char *)alloc(len);
|
||||||
if (pat == NULL)
|
if (pat == NULL)
|
||||||
return;
|
return;
|
||||||
|
@@ -748,6 +748,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1396,
|
||||||
/**/
|
/**/
|
||||||
1395,
|
1395,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user