forked from aniani/vim
patch 8.1.0628: Compiler warning on MS-Windows.
Problem: Compiler warning on MS-Windows. Solution: Add type cast. (Mike Williams)
This commit is contained in:
@@ -2953,7 +2953,7 @@ FunctionNew(PyTypeObject *subtype, char_u *name, int argc, typval_T *argv,
|
|||||||
char_u *np;
|
char_u *np;
|
||||||
size_t len = STRLEN(p) + 1;
|
size_t len = STRLEN(p) + 1;
|
||||||
|
|
||||||
if ((np = alloc(len + 2)) == NULL)
|
if ((np = alloc((int)len + 2)) == NULL)
|
||||||
{
|
{
|
||||||
vim_free(p);
|
vim_free(p);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@@ -799,6 +799,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 */
|
||||||
|
/**/
|
||||||
|
628,
|
||||||
/**/
|
/**/
|
||||||
627,
|
627,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user