]> granicus.if.org Git - vim/commitdiff
patch 8.1.0156: MS-Windows compiler warning v8.1.0156
authorBram Moolenaar <Bram@vim.org>
Fri, 6 Jul 2018 20:52:02 +0000 (22:52 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 6 Jul 2018 20:52:02 +0000 (22:52 +0200)
Problem:    MS-Windows compiler warning.
Solution:   Add a type cast. (Mike Williams)

src/version.c

index 2be3ae1c0e6192c9ead1a85e0b8fd178c96dc77d..63a7694d5f7e198230e26f2ced37cf3f4bf160b8 100644 (file)
@@ -61,7 +61,7 @@ init_longVersion(void)
                + strlen(VIM_VERSION_DATE_ONLY)
                + strlen(date_time);
 
-    longVersion = (char *)alloc(len);
+    longVersion = (char *)alloc((unsigned)len);
     if (longVersion == NULL)
        longVersion = VIM_VERSION_LONG;
     else
@@ -789,6 +789,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    156,
 /**/
     155,
 /**/