diff options
author | Mike Pall <mike> | 2021-10-06 17:31:46 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2021-10-06 17:31:46 +0200 |
commit | 442eff63abca3a8a79b80a6f7d27377720d5d126 (patch) | |
tree | 491dd0cf94d306227d4f319eed51cc26c6e2b78c /src | |
parent | e4b4d9451402be704d5b47a359f640a29db4977f (diff) | |
download | luajit-442eff63abca3a8a79b80a6f7d27377720d5d126.tar.gz luajit-442eff63abca3a8a79b80a6f7d27377720d5d126.tar.bz2 luajit-442eff63abca3a8a79b80a6f7d27377720d5d126.zip |
Fix compilation of multi-result call to next().
Thanks to Vyacheslav Egorov.
Diffstat (limited to '')
-rw-r--r-- | src/lj_ffrecord.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_ffrecord.c b/src/lj_ffrecord.c index 01e53fb6..4c351bd6 100644 --- a/src/lj_ffrecord.c +++ b/src/lj_ffrecord.c | |||
@@ -546,7 +546,7 @@ static void LJ_FASTCALL recff_next(jit_State *J, RecordFFData *rd) | |||
546 | ix.keyv.u32.lo = lj_tab_keyindex(tabV(&ix.tabv), keyv); | 546 | ix.keyv.u32.lo = lj_tab_keyindex(tabV(&ix.tabv), keyv); |
547 | /* Omit the value, if not used by the caller. */ | 547 | /* Omit the value, if not used by the caller. */ |
548 | ix.idxchain = (J->framedepth && frame_islua(J->L->base-1) && | 548 | ix.idxchain = (J->framedepth && frame_islua(J->L->base-1) && |
549 | bc_b(frame_pc(J->L->base-1)[-1]) <= 2); | 549 | bc_b(frame_pc(J->L->base-1)[-1])-1 < 2); |
550 | ix.mobj = 0; /* We don't need the next index. */ | 550 | ix.mobj = 0; /* We don't need the next index. */ |
551 | rd->nres = lj_record_next(J, &ix); | 551 | rd->nres = lj_record_next(J, &ix); |
552 | J->base[0] = ix.key; | 552 | J->base[0] = ix.key; |