diff src/if_py_both.h @ 15236:9e6d1e80ca2b v8.1.0628

patch 8.1.0628: Compiler warning on MS-Windows. commit https://github.com/vim/vim/commit/80dae04d690d9aba26d443d4a19f3bd45ed0990b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 23 13:36:40 2018 +0100 patch 8.1.0628: Compiler warning on MS-Windows. Problem: Compiler warning on MS-Windows. Solution: Add type cast. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Sun, 23 Dec 2018 13:45:07 +0100
parents ee63f4fe3d45
children 1d2b5c016f17
line wrap: on
line diff
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -2953,7 +2953,7 @@ FunctionNew(PyTypeObject *subtype, char_
 	    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;