diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-07-22 22:46:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-07-22 22:46:13 +0200 |
commit | 33c3a694fca7978cdd28c5e41b498473a08bc05e (patch) | |
tree | 39b9ae3e5f3fb218b71205db4c80a8fb2d50cdd4 /src/ops.c | |
parent | dd1616e6cedf798a5e6db3bf8cec1fc79a0481d0 (diff) | |
download | vim-git-33c3a694fca7978cdd28c5e41b498473a08bc05e.tar.gz |
patch 7.4.796v7.4.796
Problem: Warning from 64 bit compiler.
Solution: Add type cast. (Mike Williams)
Diffstat (limited to 'src/ops.c')
-rw-r--r-- | src/ops.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |