Skip to content

Commit abe12a1

Browse files
committed
patch 8.1.2309: compiler warning for argument type
Problem: Compiler warning for argument type. Solution: Use linenr_T and cast to varnumber_T. (John Marriott)
1 parent ecafcc1 commit abe12a1

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/mouse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3019,7 +3019,7 @@ f_getmousepos(typval_T *argvars UNUSED, typval_T *rettv)
30193019
varnumber_T winid = 0;
30203020
varnumber_T winrow = 0;
30213021
varnumber_T wincol = 0;
3022-
varnumber_T line = 0;
3022+
linenr_T line = 0;
30233023
varnumber_T column = 0;
30243024

30253025
if (rettv_dict_alloc(rettv) != OK)
@@ -3061,7 +3061,7 @@ f_getmousepos(typval_T *argvars UNUSED, typval_T *rettv)
30613061
dict_add_number(d, "winid", winid);
30623062
dict_add_number(d, "winrow", winrow);
30633063
dict_add_number(d, "wincol", wincol);
3064-
dict_add_number(d, "line", line);
3064+
dict_add_number(d, "line", (varnumber_T)line);
30653065
dict_add_number(d, "column", column);
30663066
}
30673067
#endif

src/version.c

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

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
2309,
744746
/**/
745747
2308,
746748
/**/

0 commit comments

Comments
 (0)