patch 9.0.1732: vimexpr: shadowing variable
Commit:
https://github.com/vim/vim/commit/d5475e8d8dc250f19043b730c10a01b06f1c8040
Author: Christian Brabandt <[email protected]>
Date: Thu Aug 17 23:34:09 2023 +0200
patch 9.0.1732: vimexpr: shadowing variable
Problem: vimexpr: shadowing variable
Solution: Rename local variable
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/version.c b/src/version.c
index c20dedc0a..dd8491b6d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1732,
/**/
1731,
/**/
diff --git a/src/vim9expr.c b/src/vim9expr.c
index db4cee1b1..0e466bd02 100644
--- a/src/vim9expr.c
+++ b/src/vim9expr.c
@@ -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;
}
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1qWkne-006clk-S4%40256bit.org.