• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revision9debc021e99ea1ec5f38b3312f827a3bbc56ac9f (tree)
Time2020-09-16 23:00:04
AuthorBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

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.

Change Summary

Incremental Difference

diff -r 16d0d731599b -r 9debc021e99e src/ops.c
--- a/src/ops.c Wed Sep 16 15:45:05 2020 +0200
+++ b/src/ops.c Wed Sep 16 16:00:04 2020 +0200
@@ -2840,7 +2840,8 @@
28402840 // Delete the one character before the insert.
28412841 curwin->w_cursor = save_pos;
28422842 (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);
28442845 --todel;
28452846 }
28462847 while (todel-- > 0)
diff -r 16d0d731599b -r 9debc021e99e src/version.c
--- a/src/version.c Wed Sep 16 15:45:05 2020 +0200
+++ b/src/version.c Wed Sep 16 16:00:04 2020 +0200
@@ -751,6 +751,8 @@
751751 static int included_patches[] =
752752 { /* Add new patch number below this line */
753753 /**/
754+ 1694,
755+/**/
754756 1693,
755757 /**/
756758 1692,
Show on old repository browser