diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-16 15:46:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-16 15:46:08 +0200 |
commit | 573545a55afb5d42614cdb69f356abb32409270b (patch) | |
tree | eb69a65191fb473138c6831adaa027344f8564e4 /src/ops.c | |
parent | 05eb5b9cae123b138bbd23cc77e50657ece6b4ad (diff) | |
download | vim-git-573545a55afb5d42614cdb69f356abb32409270b.tar.gz |
patch 8.2.1694: compiler warning for loss if datav8.2.1694
Problem: Compiler warning for loss if data.
Solution: Add typecast.
Diffstat (limited to 'src/ops.c')
-rw-r--r-- | src/ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2840,7 +2840,8 @@ do_addsub( // Delete the one character before the insert. curwin->w_cursor = save_pos; (void)del_char(FALSE); - curwin->w_cursor.col = STRLEN(ml_get_curline()) - bytes_after; + curwin->w_cursor.col = (colnr_T)(STRLEN(ml_get_curline()) + - bytes_after); --todel; } while (todel-- > 0) |