mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user