patch 9.0.1108: type error when using "any" type and adding to float
Problem: Type error when using "any" type and adding a number to a float.
Solution: Accept both a number and a float. (closes #11753)
diff --git a/src/evalfunc.c b/src/evalfunc.c
index b96fc47..314a3f8 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -215,7 +215,7 @@
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 @@
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;