summaryrefslogtreecommitdiffstats
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-12-29 20:56:24 +0000
committerBram Moolenaar <Bram@vim.org>2022-12-29 20:56:24 +0000
commitc6951a76a58663ef8a773d340f2260da7455643c (patch)
tree85498d64d07c8c65919d0938494a754a213e21c4 /src/evalfunc.c
parent73ade49c4b692e77d2c0b2ef0afbedbf55c5f946 (diff)
patch 9.0.1108: type error when using "any" type and adding to floatv9.0.1108
Problem: Type error when using "any" type and adding a number to a float. Solution: Accept both a number and a float. (closes #11753)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index b96fc472c3..314a3f863d 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -215,7 +215,7 @@ check_arg_type(
type_T *actual,
argcontext_T *context)
{
- return need_type(actual, expected,
+ return need_type(actual, expected, FALSE,
context->arg_idx - context->arg_count, context->arg_idx + 1,
context->arg_cctx, FALSE, FALSE);
}
@@ -229,7 +229,7 @@ check_arg_type_mod(
type_T *actual,
argcontext_T *context)
{
- if (need_type(actual, expected,
+ if (need_type(actual, expected, FALSE,
context->arg_idx - context->arg_count, context->arg_idx + 1,
context->arg_cctx, FALSE, FALSE) == FAIL)
return FAIL;