Skip to content

Commit 1072768

Browse files
committed
patch 8.1.1663: compiler warning for using size_t
Problem: Compiler warning for using size_t. Solution: Add type cast. (Mike Williams)
1 parent e28cfb2 commit 1072768

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/popupwin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ set_mousemoved_columns(win_T *wp, int flags)
199199
getvcol(textwp, &pos, &mcol, NULL, NULL);
200200
wp->w_popup_mouse_mincol = mcol;
201201

202-
pos.col = col + STRLEN(text) - 1;
202+
pos.col = col + (colnr_T)STRLEN(text) - 1;
203203
getvcol(textwp, &pos, NULL, NULL, &mcol);
204204
wp->w_popup_mouse_maxcol = mcol;
205205
vim_free(text);

src/version.c

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

778778
static int included_patches[] =
779779
{ /* Add new patch number below this line */
780+
/**/
781+
1663,
780782
/**/
781783
1662,
782784
/**/

0 commit comments

Comments
 (0)