comparison src/ops.c @ 6957:d19e79d29bf9 v7.4.796

patch 7.4.796 Problem: Warning from 64 bit compiler. Solution: Add type cast. (Mike Williams)
author Bram Moolenaar <bram@vim.org>
date Wed, 22 Jul 2015 22:46:13 +0200
parents 62ba356c2d4e
children e859731ea1cd
comparison
equal deleted inserted replaced
6956:ad7ee058c03b 6957:d19e79d29bf9
5427 ptr = ml_get(VIsual.lnum); 5427 ptr = ml_get(VIsual.lnum);
5428 RLADDSUBFIX(ptr); 5428 RLADDSUBFIX(ptr);
5429 if (VIsual_mode == 'V') 5429 if (VIsual_mode == 'V')
5430 { 5430 {
5431 VIsual.col = 0; 5431 VIsual.col = 0;
5432 curwin->w_cursor.col = STRLEN(ptr); 5432 curwin->w_cursor.col = (colnr_T)STRLEN(ptr);
5433 } 5433 }
5434 else if (VIsual_mode == Ctrl_V && 5434 else if (VIsual_mode == Ctrl_V && VIsual.col > curwin->w_cursor.col)
5435 VIsual.col > curwin->w_cursor.col)
5436 { 5435 {
5437 t = VIsual; 5436 t = VIsual;
5438 VIsual.col = curwin->w_cursor.col; 5437 VIsual.col = curwin->w_cursor.col;
5439 curwin->w_cursor.col = t.col; 5438 curwin->w_cursor.col = t.col;
5440 } 5439 }