Skip to content

Commit

Permalink
Update lparser.c
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 authored Feb 2, 2024
1 parent e0425a4 commit e5b0410
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 3rd/lua/lparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1822,10 +1822,12 @@ static void retstat (LexState *ls) {
nret = explist(ls, &e); /* optional return values */
if (hasmultret(e.k)) {
luaK_setmultret(fs, &e);
#if defined(NDEBUG)
if (e.k == VCALL && nret == 1 && !fs->bl->insidetbc) { /* tail call? */
SET_OPCODE(getinstruction(fs,&e), OP_TAILCALL);
lua_assert(GETARG_A(getinstruction(fs,&e)) == luaY_nvarstack(fs));
}
#endif
nret = LUA_MULTRET; /* return all values */
}
else {
Expand Down

0 comments on commit e5b0410

Please sign in to comment.