diff options
author | James McCoy <jamessan@jamessan.com> | 2017-06-06 14:30:48 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-06-06 21:38:31 -0400 |
commit | af59a290d8fb22a1b33be39c2fe1a6ab6848ee6d (patch) | |
tree | fa80bf31b0556e64aef0a7c18037c3ed8ce8a0c4 /src/nvim/eval/typval.c | |
parent | bf4de3f6f761bc73801eadffc63a0c18d00c2db7 (diff) | |
download | rneovim-af59a290d8fb22a1b33be39c2fe1a6ab6848ee6d.tar.gz rneovim-af59a290d8fb22a1b33be39c2fe1a6ab6848ee6d.tar.bz2 rneovim-af59a290d8fb22a1b33be39c2fe1a6ab6848ee6d.zip |
*: Fix conversion warnings for tv_get_number*()
Diffstat (limited to 'src/nvim/eval/typval.c')
-rw-r--r-- | src/nvim/eval/typval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c index 34fb319d76..4521085519 100644 --- a/src/nvim/eval/typval.c +++ b/src/nvim/eval/typval.c @@ -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); |