fix trail when you do a jumpenv (Ulrich Neumerkel #152)
This commit is contained in:
parent
50d720a9c6
commit
7f5da32c08
2
C/exec.c
2
C/exec.c
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user