patch 8.0.0469: compiler warnings on MS-Windows
Problem: Compiler warnings on MS-Windows.
Solution: Add type casts. (Christian Brabandt)
diff --git a/src/fold.c b/src/fold.c
index 9606b68..3051739 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -3137,9 +3137,11 @@
* 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