diff options
author | James McCoy <jamessan@jamessan.com> | 2017-06-06 09:56:09 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-06-06 21:38:27 -0400 |
commit | 601bf9642fe8f3655a3090d093843ae136110f27 (patch) | |
tree | 36add9a7dd7195daac1ce0f9354ffac187e7a03b /src | |
parent | 2109fb18e663e0ab1e47fa9093713a4e9d8c4932 (diff) | |
download | rneovim-601bf9642fe8f3655a3090d093843ae136110f27.tar.gz rneovim-601bf9642fe8f3655a3090d093843ae136110f27.tar.bz2 rneovim-601bf9642fe8f3655a3090d093843ae136110f27.zip |
strings/tv_float: Explicitly cast v_number to float_T for -Wconversion
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c index 9b9aa6d2f4..687f734742 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -653,7 +653,7 @@ static float_T tv_float(typval_T *const tvs, int *const idxp) if (tvs[idx].v_type == VAR_FLOAT) { f = tvs[idx].vval.v_float; } else if (tvs[idx].v_type == VAR_NUMBER) { - f = tvs[idx].vval.v_number; + f = (float_T)tvs[idx].vval.v_number; } else { EMSG(_("E807: Expected Float argument for printf()")); } |