Skip to content

Commit 573545a

Browse files
committed
patch 8.2.1694: compiler warning for loss if data
Problem: Compiler warning for loss if data. Solution: Add typecast.
1 parent 05eb5b9 commit 573545a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/ops.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2840,7 +2840,8 @@ do_addsub(
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)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
1694,
753755
/**/
754756
1693,
755757
/**/

0 commit comments

Comments
 (0)