# HG changeset patch # User Christian Brabandt # Date 1489698904 -3600 # Node ID f0602688b8efd6c348c43fda82b202fe94c6afc2 # Parent 95c79742caff351e19bc178071e6ff478dbbd228 patch 8.0.0469: compiler warnings on MS-Windows commit https://github.com/vim/vim/commit/0c0d4eca4dd6252f22ec39f2d561a5e8a68e9a4e Author: Bram Moolenaar Date: Thu Mar 16 22:06:57 2017 +0100 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 --- a/src/fold.c +++ b/src/fold.c @@ -3137,9 +3137,11 @@ foldMoveRange(garray_T *gap, linenr_T li * 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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 469, +/**/ 468, /**/ 467,