Get rid of snap->depth.
This commit is contained in:
@@ -1793,8 +1793,8 @@ static void asm_stack_check(ASMState *as, BCReg topslot,
|
||||
static void asm_stack_restore(ASMState *as, SnapShot *snap)
|
||||
{
|
||||
SnapEntry *map = &as->T->snapmap[snap->mapofs];
|
||||
SnapEntry *flinks = &as->T->snapmap[snap_nextofs(as->T, snap)-1];
|
||||
MSize n, nent = snap->nent;
|
||||
SnapEntry *flinks = map + nent + snap->depth;
|
||||
/* Store the value of all modified slots to the Lua stack. */
|
||||
for (n = 0; n < nent; n++) {
|
||||
SnapEntry sn = map[n];
|
||||
|
||||
Reference in New Issue
Block a user