]> granicus.if.org Git - vim/commitdiff
patch 8.1.2319: compiler warning for int size v8.1.2319
authorBram Moolenaar <Bram@vim.org>
Mon, 18 Nov 2019 20:38:37 +0000 (21:38 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 18 Nov 2019 20:38:37 +0000 (21:38 +0100)
Problem:    Compiler warning for int size.
Solution:   Add typecast. (Mike Williams)

src/mouse.c
src/version.c

index 00a2783f261327e300ee45c9bb3c2fc5749a9c42..f3ff26d2ea121d63860c5f4c064169abb68e4bb9 100644 (file)
@@ -2884,7 +2884,7 @@ mouse_comp_pos(
        col += win->w_skipcol;
        // limit to text length plus one
        p = ml_get_buf(win->w_buffer, lnum, FALSE);
-       count = STRLEN(p);
+       count = (int)STRLEN(p);
        if (col > count)
            col = count;
     }
index 1adf523b4bc21408fd44733373d973b70e8fab5a..bbc74f3ca7616febdbb32f792352a27d6ddcbdf4 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2319,
 /**/
     2318,
 /**/