fix slot handling

This commit is contained in:
Vitor Santos Costa
2014-03-11 15:33:38 +00:00
parent 2812ad5704
commit d0adb0b910
6 changed files with 20 additions and 21 deletions

View File

@@ -2516,9 +2516,13 @@ YAP_RunGoal(Term t)
ENV = B->cp_env;
ENV = (CELL *)ENV[E_E];
CP = old_CP;
HR = B->cp_h;
TR = B->cp_tr;
B = B->cp_b;
LOCAL_AllowRestart = FALSE;
ASP = ENV;
SET_ASP(ENV, E_CB*sizeof(CELL));
// make sure the slots are ok.
ASP = LCL0-(CurSlot+2+IntOfTerm(LCL0[-CurSlot-1]));
LOCAL_CurSlot = CurSlot;
}
RECOVER_MACHINE_REGS();