0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.0469: compiler warnings on MS-Windows

Problem:    Compiler warnings on MS-Windows.
Solution:   Add type casts. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2017-03-16 22:06:57 +01:00
parent f2405ed232
commit 0c0d4eca4d
2 changed files with 7 additions and 3 deletions

View 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

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
469,
/**/
468,
/**/