LUA: Remove use of final as a variable name

This commit is contained in:
Cameron Cawley
2020-06-18 20:14:46 +01:00
committed by David Turner
parent 7c131e0277
commit 34901536a7
+4 -4
View File
@@ -390,7 +390,7 @@ static void exp2reg (FuncState *fs, expdesc *e, int reg) {
if (e->k == VJMP)
luaK_concat(fs, &e->t, e->u.s.info); /* put this jump in `t' list */
if (hasjumps(e)) {
int final; /* position after whole expression */
int final_pos; /* position after whole expression */
int p_f = NO_JUMP; /* position of an eventual LOAD false */
int p_t = NO_JUMP; /* position of an eventual LOAD true */
if (need_value(fs, e->t) || need_value(fs, e->f)) {
@@ -399,9 +399,9 @@ static void exp2reg (FuncState *fs, expdesc *e, int reg) {
p_t = code_label(fs, reg, 1, 0);
luaK_patchtohere(fs, fj);
}
final = luaK_getlabel(fs);
patchlistaux(fs, e->f, final, reg, p_f);
patchlistaux(fs, e->t, final, reg, p_t);
final_pos = luaK_getlabel(fs);
patchlistaux(fs, e->f, final_pos, reg, p_f);
patchlistaux(fs, e->t, final_pos, reg, p_t);
}
e->f = e->t = NO_JUMP;
e->u.s.info = reg;