mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
strings/tv_float: Explicitly cast v_number to float_T for -Wconversion
This commit is contained in:
parent
2109fb18e6
commit
601bf9642f
@ -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()"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user