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

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:
Bram Moolenaar 2018-12-23 13:36:40 +01:00
parent 9123c0b31a
commit 80dae04d69
2 changed files with 3 additions and 1 deletions

View File

@ -2953,7 +2953,7 @@ FunctionNew(PyTypeObject *subtype, char_u *name, int argc, typval_T *argv,
char_u *np;
size_t len = STRLEN(p) + 1;
if ((np = alloc(len + 2)) == NULL)
if ((np = alloc((int)len + 2)) == NULL)
{
vim_free(p);
return NULL;

View File

@ -799,6 +799,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
628,
/**/
627,
/**/