Skip to content

Commit 0c0d4ec

Browse files
committed
patch 8.0.0469: compiler warnings on MS-Windows
Problem: Compiler warnings on MS-Windows. Solution: Add type casts. (Christian Brabandt)
1 parent f2405ed commit 0c0d4ec

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/fold.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3137,9 +3137,11 @@ foldMoveRange(garray_T *gap, linenr_T line1, linenr_T line2, linenr_T dest)
31373137
* order. We have to swap folds in the range [move_end, dest_index) with
31383138
* those in the range [move_start, move_end).
31393139
*/
3140-
foldReverseOrder(gap, move_start, dest_index - 1);
3141-
foldReverseOrder(gap, move_start, move_start + dest_index - move_end - 1);
3142-
foldReverseOrder(gap, move_start + dest_index - move_end, dest_index - 1);
3140+
foldReverseOrder(gap, (linenr_T)move_start, (linenr_T)dest_index - 1);
3141+
foldReverseOrder(gap, (linenr_T)move_start,
3142+
(linenr_T)(move_start + dest_index - move_end - 1));
3143+
foldReverseOrder(gap, (linenr_T)(move_start + dest_index - move_end),
3144+
(linenr_T)(dest_index - 1));
31433145
}
31443146
#undef fold_end
31453147
#undef valid_fold

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
469,
767769
/**/
768770
468,
769771
/**/

0 commit comments

Comments
 (0)