summaryrefslogtreecommitdiff
path: root/src/dict.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dict.c')
-rw-r--r--src/dict.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dict.c b/src/dict.c
index b36b2bf6d..922da473c 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -1089,7 +1089,8 @@ dict_extend(dict_T *d1, dict_T *d2, char_u *action)
}
if (type != NULL
- && check_typval_type(type, &HI2DI(hi2)->di_tv, 0) == FAIL)
+ && check_typval_arg_type(type, &HI2DI(hi2)->di_tv, 0)
+ == FAIL)
break;
if (di1 == NULL)