Mercurial > vim
comparison src/ops.c @ 22290:9debc021e99e v8.2.1694
patch 8.2.1694: compiler warning for loss if data
Commit: https://github.com/vim/vim/commit/573545a55afb5d42614cdb69f356abb32409270b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 16 15:46:08 2020 +0200
patch 8.2.1694: compiler warning for loss if data
Problem: Compiler warning for loss if data.
Solution: Add typecast.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 16 Sep 2020 16:00:04 +0200 |
parents | 5adb97bf0b32 |
children | e82579016863 |
comparison
equal
deleted
inserted
replaced
22289:16d0d731599b | 22290:9debc021e99e |
---|---|
2838 - curwin->w_cursor.col; | 2838 - curwin->w_cursor.col; |
2839 | 2839 |
2840 // Delete the one character before the insert. | 2840 // Delete the one character before the insert. |
2841 curwin->w_cursor = save_pos; | 2841 curwin->w_cursor = save_pos; |
2842 (void)del_char(FALSE); | 2842 (void)del_char(FALSE); |
2843 curwin->w_cursor.col = STRLEN(ml_get_curline()) - bytes_after; | 2843 curwin->w_cursor.col = (colnr_T)(STRLEN(ml_get_curline()) |
2844 - bytes_after); | |
2844 --todel; | 2845 --todel; |
2845 } | 2846 } |
2846 while (todel-- > 0) | 2847 while (todel-- > 0) |
2847 (void)del_char(FALSE); | 2848 (void)del_char(FALSE); |
2848 | 2849 |