Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Aug 26, 2024
1 parent 04f1b9c commit c3f4231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3rd/lua/lcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ void luaK_exp2anyregup (FuncState *fs, expdesc *e) {
** or it is a constant.
*/
void luaK_exp2val (FuncState *fs, expdesc *e) {
if (hasjumps(e))
if (e->k == VJMP || hasjumps(e))
luaK_exp2anyreg(fs, e);
else
luaK_dischargevars(fs, e);
Expand Down

0 comments on commit c3f4231

Please sign in to comment.