]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1732: vimexpr: shadowing variable v9.0.1732
authorChristian Brabandt <cb@256bit.org>
Thu, 17 Aug 2023 21:34:09 +0000 (23:34 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 17 Aug 2023 21:41:33 +0000 (23:41 +0200)
Problem: vimexpr: shadowing variable
Solution: Rename local variable

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/version.c
src/vim9expr.c

index c20dedc0a5ee39749d019a154168915207ba6d8f..dd8491b6d25b2e7e734af1e0ed001cd4d71f35d2 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1732,
 /**/
     1731,
 /**/
index db4cee1b16a81c451cc03728c185211fa32bbae5..0e466bd02cd2da41c87713dbf4c94581c2a27b00 100644 (file)
@@ -1100,9 +1100,9 @@ compile_call(
     if (!has_g_namespace && !is_autoload
            && compile_load(&p, namebuf + varlen, cctx, FALSE, FALSE) == OK)
     {
-       type_T      *type = get_type_on_stack(cctx, 0);
+       type_T      *s_type = get_type_on_stack(cctx, 0);
 
-       res = generate_PCALL(cctx, argcount, namebuf, type, FALSE);
+       res = generate_PCALL(cctx, argcount, namebuf, s_type, FALSE);
        goto theend;
     }