commit | 80dae04d690d9aba26d443d4a19f3bd45ed0990b | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Dec 23 13:36:40 2018 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Dec 23 13:36:40 2018 +0100 |
tree | e34a2cf54cf111c617f1437cc616bfa861dcd8c7 | |
parent | 9123c0b31a283f460ed2b6af95080120cf528118 [diff] [blame] |
patch 8.1.0628: Compiler warning on MS-Windows. Problem: Compiler warning on MS-Windows. Solution: Add type cast. (Mike Williams)
diff --git a/src/if_py_both.h b/src/if_py_both.h index 1a4ef46..1c15926 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h
@@ -2953,7 +2953,7 @@ 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;