mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
*: Fix conversion warnings for tv_get_number*()
This commit is contained in:
@@ -2442,7 +2442,7 @@ varnumber_T tv_get_number_chk(const typval_T *const tv, bool *const ret_error)
|
||||
linenr_T tv_get_lnum(const typval_T *const tv)
|
||||
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT
|
||||
{
|
||||
linenr_T lnum = tv_get_number_chk(tv, NULL);
|
||||
linenr_T lnum = (linenr_T)tv_get_number_chk(tv, NULL);
|
||||
if (lnum == 0) { // No valid number, try using same function as line() does.
|
||||
int fnum;
|
||||
pos_T *const fp = var2fpos(tv, true, &fnum);
|
||||
|
Reference in New Issue
Block a user