fix trail when you do a jumpenv (Ulrich Neumerkel #152)

This commit is contained in:
Vítor Manuel de Morais Santos Costa 2009-11-25 09:47:38 +00:00
parent 50d720a9c6
commit 7f5da32c08

View File

@ -1533,6 +1533,7 @@ clean_trail(Term t, DBTerm *dbt, Term t0)
if (suspended_on_current_execution(val, t0)) {
RESET_VARIABLE(&TrailTerm(pt1));
} else {
TR = pt1+1;
t = get_term(dbt, t);
Bind(pt, t);
Yap_WakeUp(pt);
@ -1561,6 +1562,7 @@ clean_trail(Term t, DBTerm *dbt, Term t0)
#endif /* FROZEN_STACKS */
}
}
TR = pt1+1;
t = get_term(dbt, t);
return t;
}