]> granicus.if.org Git - vim/commitdiff
patch 8.1.0628: Compiler warning on MS-Windows. v8.1.0628
authorBram Moolenaar <Bram@vim.org>
Sun, 23 Dec 2018 12:36:40 +0000 (13:36 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 23 Dec 2018 12:36:40 +0000 (13:36 +0100)
Problem:    Compiler warning on MS-Windows.
Solution:   Add type cast. (Mike Williams)

src/if_py_both.h
src/version.c

index 1a4ef462ef12c8d46e20f311ee03d06d79e00423..1c159260c736715200b23342d7372fe816e6e1db 100644 (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;
index 101d7864d12e22532079b73a1034f7d0cf3e1922..ff22c6d5021e13502ebefad32c8dc48328f88974 100644 (file)
@@ -799,6 +799,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    628,
 /**/
     627,
 /**/