patch 9.0.0504: still a build failure
Problem: still a Build failure.
Solution: Add another missing changes. Avoid compiler warning.
diff --git a/src/vim9expr.c b/src/vim9expr.c
index 5f1e07d..0e44b76 100644
--- a/src/vim9expr.c
+++ b/src/vim9expr.c
@@ -496,6 +496,7 @@
int idx;
int gen_load = FALSE;
int gen_load_outer = 0;
+ int outer_loop_depth = -1;
int outer_loop_idx = -1;
name = vim_strnsave(*arg, end - *arg);
@@ -521,6 +522,7 @@
{
type = lvar.lv_type;
idx = lvar.lv_idx;
+ outer_loop_depth = lvar.lv_loop_depth;
outer_loop_idx = lvar.lv_loop_idx;
if (lvar.lv_from_outer != 0)
gen_load_outer = lvar.lv_from_outer;
@@ -546,8 +548,8 @@
res = generate_LOAD(cctx, ISN_LOAD, idx, NULL, type);
if (gen_load_outer > 0)
{
- res = generate_LOADOUTER(cctx, idx,
- gen_load_outer, outer_loop_idx, type);
+ res = generate_LOADOUTER(cctx, idx, gen_load_outer,
+ outer_loop_depth, outer_loop_idx, type);
cctx->ctx_outer_used = TRUE;
}
}