Mercurial > vim
changeset 11165:f0602688b8ef v8.0.0469
patch 8.0.0469: compiler warnings on MS-Windows
commit https://github.com/vim/vim/commit/0c0d4eca4dd6252f22ec39f2d561a5e8a68e9a4e
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 16 Mar 2017 22:15:04 +0100 |
parents | 95c79742caff |
children | 5fe89eb60658 |
files | src/fold.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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