cut point should be initialised when bootrapping a new goal

This commit is contained in:
Vitor Santos Costa 2013-04-26 16:38:54 -05:00
parent 743c9c69fb
commit f0bc4fb458
1 changed files with 1 additions and 0 deletions

View File

@ -1173,6 +1173,7 @@ Yap_PrepGoal(UInt arity, CELL *pt, choiceptr saved_b USES_REGS)
B->cp_depth = DEPTH;
#endif /* DEPTH_LIMIT */
YENV = ASP = (CELL *)B;
YENV[E_CB] = (CELL)B;
HB = H;
CP = YESCODE;
}