Another fix for lua_yield() from C hook.

Reported by Jason Carr.
This commit is contained in:
Mike Pall
2020-09-22 23:37:43 +02:00
parent 518e8cbeb4
commit dd0f09f95f
4 changed files with 4 additions and 4 deletions

View File

@@ -86,8 +86,8 @@ int lj_meta_tailcall(lua_State *L, cTValue *tv)
else
top->u32.lo = LJ_CONT_TAILCALL;
setframe_pc(top++, pc);
if (LJ_FR2) top++;
setframe_gc(top, obj2gco(L), LJ_TTHREAD); /* Dummy frame object. */
if (LJ_FR2) top++;
setframe_ftsz(top, ((char *)(top+1) - (char *)base) + FRAME_CONT);
L->base = L->top = top+1;
/*