0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 7.4.796

Problem:    Warning from 64 bit compiler.
Solution:   Add type cast. (Mike Williams)
This commit is contained in:
Bram Moolenaar
2015-07-22 22:46:13 +02:00
parent dd1616e6ce
commit 33c3a694fc
2 changed files with 4 additions and 3 deletions

View File

@@ -5429,10 +5429,9 @@ do_addsub(command, Prenum1, g_cmd)
if (VIsual_mode == 'V')
{
VIsual.col = 0;
curwin->w_cursor.col = STRLEN(ptr);
curwin->w_cursor.col = (colnr_T)STRLEN(ptr);
}
else if (VIsual_mode == Ctrl_V &&
VIsual.col > curwin->w_cursor.col)
else if (VIsual_mode == Ctrl_V && VIsual.col > curwin->w_cursor.col)
{
t = VIsual;
VIsual.col = curwin->w_cursor.col;