]> granicus.if.org Git - vim/commitdiff
patch 8.0.0469: compiler warnings on MS-Windows v8.0.0469
authorBram Moolenaar <Bram@vim.org>
Thu, 16 Mar 2017 21:06:57 +0000 (22:06 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 16 Mar 2017 21:06:57 +0000 (22:06 +0100)
Problem:    Compiler warnings on MS-Windows.
Solution:   Add type casts. (Christian Brabandt)

src/fold.c
src/version.c

index 9606b68190733cfde10ed47d8bd375e096d3f42f..305173918360505916cdb45259756b91907e33cb 100644 (file)
@@ -3137,9 +3137,11 @@ foldMoveRange(garray_T *gap, linenr_T line1, linenr_T line2, linenr_T dest)
      * order. We have to swap folds in the range [move_end, dest_index) with
      * those in the range [move_start, move_end).
      */
-    foldReverseOrder(gap, move_start, dest_index - 1);
-    foldReverseOrder(gap, move_start, move_start + dest_index - move_end - 1);
-    foldReverseOrder(gap, move_start + dest_index - move_end, dest_index - 1);
+    foldReverseOrder(gap, (linenr_T)move_start, (linenr_T)dest_index - 1);
+    foldReverseOrder(gap, (linenr_T)move_start,
+                          (linenr_T)(move_start + dest_index - move_end - 1));
+    foldReverseOrder(gap, (linenr_T)(move_start + dest_index - move_end),
+                                                  (linenr_T)(dest_index - 1));
 }
 #undef fold_end
 #undef valid_fold
index e235fb8d09f571d0508246fb2b5a85e5dcc86bb3..bc850068647c878de170e31a32fc0455abb11bbd 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    469,
 /**/
     468,
 /**/