summaryrefslogtreecommitdiffstats
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-02-21 12:38:51 +0000
committerBram Moolenaar <Bram@vim.org>2023-02-21 12:38:51 +0000
commitb1e32ac0c998808705cfbd59e4b8510931875078 (patch)
tree22bf3a12787ac488a056318c5b2460071cc0f3aa /src/evalfunc.c
parent938ae280c79b8cdb0fca60336ec4c090ecd8bb5a (diff)
patch 9.0.1334: using tt_member for the class leads to mistakesv9.0.1334
Problem: Using tt_member for the class leads to mistakes. Solution: Add a separate tt_class field.
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 cf30ed7623..1dc723fdc9 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -585,7 +585,7 @@ check_map_filter_arg2(type_T *type, argcontext_T *context, int is_map)
{
type_T *expected_member = NULL;
type_T *(args[2]);
- type_T t_func_exp = {VAR_FUNC, 2, 0, 0, NULL, args};
+ type_T t_func_exp = {VAR_FUNC, 2, 0, 0, NULL, NULL, args};
if (context->arg_types[0].type_curr->tt_type == VAR_LIST
|| context->arg_types[0].type_curr->tt_type == VAR_DICT)
@@ -699,7 +699,7 @@ arg_sort_how(type_T *type, type_T *decl_type UNUSED, argcontext_T *context)
if (type->tt_type == VAR_FUNC)
{
type_T *(args[2]);
- type_T t_func_exp = {VAR_FUNC, 2, 0, 0, &t_number, args};
+ type_T t_func_exp = {VAR_FUNC, 2, 0, 0, &t_number, NULL, args};
if (context->arg_types[0].type_curr->tt_type == VAR_LIST)
args[0] = context->arg_types[0].type_curr->tt_member;