summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-17 21:08:33 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-17 21:08:33 +0100
commit73e28dcc6125f616cf1f2d56443d22428a79e434 (patch)
treebc26b3d1bb2e1675b7dae14b6c9cda1cd42c90d6 /src/vim9compile.c
parent1c3dd8ddcba63c1af5112e567215b3cec2de11d0 (diff)
downloadvim-git-73e28dcc6125f616cf1f2d56443d22428a79e434.tar.gz
patch 9.0.0491: no good reason to build without the float featurev9.0.0491
Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 1a1190e4b..4890de346 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -2384,9 +2384,7 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx)
r = generate_PUSHBOOL(cctx, VVAL_FALSE);
break;
case VAR_FLOAT:
-#ifdef FEAT_FLOAT
r = generate_PUSHF(cctx, 0.0);
-#endif
break;
case VAR_STRING:
r = generate_PUSHS(cctx, NULL);
@@ -2455,11 +2453,9 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx)
expected = lhs.lhs_member_type;
stacktype = get_type_on_stack(cctx, 0);
if (
-#ifdef FEAT_FLOAT
// If variable is float operation with number is OK.
!(expected == &t_float && (stacktype == &t_number
|| stacktype == &t_number_bool)) &&
-#endif
need_type(stacktype, expected, -1, 0, cctx,
FALSE, FALSE) == FAIL)
goto theend;