summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-21 16:42:22 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-21 16:42:22 +0200
commitca17453e73fe69dc25a9d703804877a60763b685 (patch)
tree224ea9cada39389b9409a9ebb97c46990ed57b00 /src/vim9compile.c
parent8a99e66b4f7616d9b0b9cefe742f82f9122087d5 (diff)
downloadvim-git-ca17453e73fe69dc25a9d703804877a60763b685.tar.gz
patch 8.2.1879: Vim9: argument types of insert() not checked when compilingv8.2.1879
Problem: Vim9: argument types of insert() not checked when compiling. Solution: Add argument type checks for insert().
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 289b941bf..8ef1f0873 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -1478,7 +1478,7 @@ generate_BCALL(cctx_T *cctx, int func_idx, int argcount, int method_call)
// Check the types of the arguments.
argtypes = ((type_T **)stack->ga_data) + stack->ga_len - argcount;
if (argcount > 0 && internal_func_check_arg_types(
- *argtypes, func_idx, argcount) == FAIL)
+ argtypes, func_idx, argcount) == FAIL)
return FAIL;
if ((isn = generate_instr(cctx, ISN_BCALL)) == NULL)