fix bug in unwinding trail at amiops.h

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1124 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc 2004-09-07 16:48:04 +00:00
parent 9e0151070f
commit 6bf9d6cef1
2 changed files with 7 additions and 5 deletions

View File

@ -11,8 +11,11 @@
* File: cdmgr.c *
* comments: Code manager *
* *
* Last rev: $Date: 2004-09-07 16:25:22 $,$Author: vsc $ *
* Last rev: $Date: 2004-09-07 16:48:04 $,$Author: vsc $ *
* $Log: not supported by cvs2svn $
* Revision 1.129 2004/09/07 16:25:22 vsc
* memory management bug fixes
*
* Revision 1.128 2004/09/03 03:11:07 vsc
* memory management fixes
*
@ -2808,7 +2811,6 @@ PredForCode(yamop *codeptr, Atom *pat, UInt *parity, Term *pmodule) {
for (i_table = 0; i_table < NoOfModules; i_table++) {
PredEntry *pp;
restart:
pp = ModulePred[i_table];
while (pp != NULL) {
if ((found = code_in_pred(pp, pat, parity, codeptr)) != 0) {

View File

@ -392,12 +392,12 @@ Int Yap_unify(Term t0, Term t1)
/* AbsAppl means */
/* multi-assignment variable */
/* so the next cell is the old value */
TR--;
#if FROZEN_STACKS
pt[0] = TrailVal(TR);
pt[0] = TrailVal(TR-1);
#else
pt[0] = TrailTerm(TR);
pt[0] = TrailTerm(TR-1);
#endif /* FROZEN_STACKS */
TR -= 2;
}
#endif
}