summaryrefslogtreecommitdiffstats
path: root/src/vim9expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vim9expr.c')
-rw-r--r--src/vim9expr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/vim9expr.c b/src/vim9expr.c
index 4406ac47e6..5f1e07d828 100644
--- a/src/vim9expr.c
+++ b/src/vim9expr.c
@@ -1488,14 +1488,12 @@ apply_leader(typval_T *rettv, int numeric_only, char_u *start, char_u **end)
if (*p == '-' || *p == '+')
{
// only '-' has an effect, for '+' we only check the type
-#ifdef FEAT_FLOAT
if (rettv->v_type == VAR_FLOAT)
{
if (*p == '-')
rettv->vval.v_float = -rettv->vval.v_float;
}
else
-#endif
{
varnumber_T val;
int error = FALSE;