comparison src/fold.c @ 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 80241603dd50
children 8c153d400bf4
comparison
equal deleted inserted replaced
11164:95c79742caff 11165:f0602688b8ef
3135 /* 3135 /*
3136 * All folds are now correct, but they are not necessarily in the correct 3136 * All folds are now correct, but they are not necessarily in the correct
3137 * order. We have to swap folds in the range [move_end, dest_index) with 3137 * order. We have to swap folds in the range [move_end, dest_index) with
3138 * those in the range [move_start, move_end). 3138 * those in the range [move_start, move_end).
3139 */ 3139 */
3140 foldReverseOrder(gap, move_start, dest_index - 1); 3140 foldReverseOrder(gap, (linenr_T)move_start, (linenr_T)dest_index - 1);
3141 foldReverseOrder(gap, move_start, move_start + dest_index - move_end - 1); 3141 foldReverseOrder(gap, (linenr_T)move_start,
3142 foldReverseOrder(gap, move_start + dest_index - move_end, dest_index - 1); 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));
3143 } 3145 }
3144 #undef fold_end 3146 #undef fold_end
3145 #undef valid_fold 3147 #undef valid_fold
3146 #undef fold_index 3148 #undef fold_index
3147 3149