mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix compilation of multi-result call to next().
Thanks to Vyacheslav Egorov.
This commit is contained in:
parent
e4b4d94514
commit
442eff63ab
@ -546,7 +546,7 @@ static void LJ_FASTCALL recff_next(jit_State *J, RecordFFData *rd)
|
|||||||
ix.keyv.u32.lo = lj_tab_keyindex(tabV(&ix.tabv), keyv);
|
ix.keyv.u32.lo = lj_tab_keyindex(tabV(&ix.tabv), keyv);
|
||||||
/* Omit the value, if not used by the caller. */
|
/* Omit the value, if not used by the caller. */
|
||||||
ix.idxchain = (J->framedepth && frame_islua(J->L->base-1) &&
|
ix.idxchain = (J->framedepth && frame_islua(J->L->base-1) &&
|
||||||
bc_b(frame_pc(J->L->base-1)[-1]) <= 2);
|
bc_b(frame_pc(J->L->base-1)[-1])-1 < 2);
|
||||||
ix.mobj = 0; /* We don't need the next index. */
|
ix.mobj = 0; /* We don't need the next index. */
|
||||||
rd->nres = lj_record_next(J, &ix);
|
rd->nres = lj_record_next(J, &ix);
|
||||||
J->base[0] = ix.key;
|
J->base[0] = ix.key;
|
||||||
|
Loading…
Reference in New Issue
Block a user