mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
3b9e75b366
commit
95bf86c2bf
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user