vim-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)
abe12a1a4f
This commit is contained in:
Daniel Steinberg 2021-06-30 13:26:48 -04:00
parent 3b9e75b366
commit 95bf86c2bf

View File

@ -3761,7 +3761,7 @@ void f_getmousepos(typval_T *argvars, typval_T *rettv, FunPtr fptr)
varnumber_T winid = 0;
varnumber_T winrow = 0;
varnumber_T wincol = 0;
varnumber_T line = 0;
linenr_T line = 0;
varnumber_T column = 0;
tv_dict_alloc_ret(rettv);
@ -3788,7 +3788,7 @@ void f_getmousepos(typval_T *argvars, typval_T *rettv, FunPtr fptr)
tv_dict_add_nr(d, S_LEN("winid"), winid);
tv_dict_add_nr(d, S_LEN("winrow"), winrow);
tv_dict_add_nr(d, S_LEN("wincol"), wincol);
tv_dict_add_nr(d, S_LEN("line"), line);
tv_dict_add_nr(d, S_LEN("line"), (varnumber_T)line);
tv_dict_add_nr(d, S_LEN("column"), column);
}