From 80dae04d690d9aba26d443d4a19f3bd45ed0990b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 23 Dec 2018 13:36:40 +0100 Subject: patch 8.1.0628: Compiler warning on MS-Windows. Problem: Compiler warning on MS-Windows. Solution: Add type cast. (Mike Williams) --- src/if_py_both.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/if_py_both.h') diff --git a/src/if_py_both.h b/src/if_py_both.h index 1a4ef462e..1c159260c 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -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; -- cgit v1.2.1