]> granicus.if.org Git - vim/commitdiff
patch 8.0.0541: compiler warning on MS-Windows v8.0.0541
authorBram Moolenaar <Bram@vim.org>
Mon, 3 Apr 2017 19:35:42 +0000 (21:35 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 3 Apr 2017 19:35:42 +0000 (21:35 +0200)
Problem:    Compiler warning on MS-Windows.
Solution:   Add a type cast. (Mike Williams)

src/edit.c
src/version.c

index fae48c61244b713ada15496edbfeee4703de2726..ad8b89a95b74aea6e1587a40a4fdf7cd43a05174 100644 (file)
@@ -9032,7 +9032,7 @@ ins_bs(
                               (linenr_T)(curwin->w_cursor.lnum + 1)) == FAIL)
                return FALSE;
            --Insstart.lnum;
-           Insstart.col = STRLEN(ml_get(Insstart.lnum));
+           Insstart.col = (colnr_T)STRLEN(ml_get(Insstart.lnum));
        }
        /*
         * In replace mode:
index 5958550f19249063697b65e44d9174d617ba0dac..eef36b4347b0d817b0926a5bedfa54282ac7eb64 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    541,
 /**/
     540,
 /**/