diff options
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index 15d2c30e9..59d133907 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -990,7 +990,7 @@ bool_on_stack(cctx_T *cctx) if (type == &t_bool) return OK; - if (type == &t_any || type == &t_number) + if (type == &t_any || type == &t_number || type == &t_number_bool) // Number 0 and 1 are OK to use as a bool. "any" could also be a bool. // This requires a runtime type check. return generate_COND2BOOL(cctx); |