diff options
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 973088a806..88f4765f54 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -12177,15 +12177,6 @@ theend: return retval; } - -/* - * round() is not in C90, use ceil() or floor() instead. - */ -float_T vim_round(float_T f) -{ - return f > 0 ? floor(f + 0.5) : ceil(f - 0.5); -} - /* * "round({float})" function */ @@ -12195,7 +12186,7 @@ static void f_round(typval_T *argvars, typval_T *rettv) rettv->v_type = VAR_FLOAT; if (get_float_arg(argvars, &f) == OK) - rettv->vval.v_float = vim_round(f); + rettv->vval.v_float = round(f); else rettv->vval.v_float = 0.0; } |