mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix recording of metamethod result adjustment.
This commit is contained in:
parent
725da9224d
commit
a6565d21fa
@ -1539,7 +1539,7 @@ static void rec_ret(jit_State *J, BCReg rbase, int gotresults)
|
||||
if (cont == lj_cont_ra) {
|
||||
/* Copy result to destination slot. */
|
||||
BCReg dst = bc_a(*J->pc);
|
||||
J->base[dst] = res[0];
|
||||
J->base[dst] = gotresults ? res[0] : TREF_NIL;
|
||||
if (dst > J->maxslot) J->maxslot = dst+1;
|
||||
} else if (cont == lj_cont_nop) {
|
||||
/* Nothing to do here. */
|
||||
|
Loading…
Reference in New Issue
Block a user