]> granicus.if.org Git - vim/commitdiff
patch 8.1.1415: build error in MS-Windows GUI v8.1.1415
authorBram Moolenaar <Bram@vim.org>
Tue, 28 May 2019 21:32:47 +0000 (23:32 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 28 May 2019 21:32:47 +0000 (23:32 +0200)
Problem:    Build error in MS-Windows GUI.
Solution:   Fix the LALLOC_MULT() argument.

src/gui_w32.c
src/version.c

index 0f683b8a166948179663f78daa947232ab8993cd..5600ac0c28908bab255edaf41a05c92e00a2f50d 100644 (file)
@@ -6056,7 +6056,7 @@ gui_mch_draw_string(
 
        /* Don't give an out-of-memory message here, it would call us
         * recursively. */
-       padding = LALLOC_MULT(sizeof(int), pad_size);
+       padding = LALLOC_MULT(int, pad_size);
        if (padding != NULL)
            for (i = 0; i < pad_size; i++)
                padding[i] = gui.char_width;
index c955bbb5970887d14ec542c9a7ff09b5833147ec..eac5b026e8c1aff367ba831fdcc9c40ee031ab0e 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1415,
 /**/
     1414,
 /**/