*: Fix conversion warnings for tv_get_number*()

This commit is contained in:
James McCoy
2017-06-06 14:30:48 -04:00
parent bf4de3f6f7
commit af59a290d8
3 changed files with 4 additions and 4 deletions

View File

@@ -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);