- Bugfix.

This commit is contained in:
ccremers 2004-08-10 11:26:14 +00:00
parent ca4c0c8869
commit 028c3a03f2

View File

@ -179,10 +179,13 @@ termMguInTerm (Term t1, Term t2, void (*iterator) ())
}
// simple clause or combined
tl = termMguTerm (t1, t2);
if (tl != MGUFAIL)
{
// Iterate
iterator ();
// Reset variables
termlistSubstReset (tl);
}
}
//! Most general subterm unifiers of t1 subterm t2
@ -224,8 +227,11 @@ termMguSubTerm (Term t1, Term t2, void (*iterator) (),
}
// simple clause or combined
tl = termMguTerm (t1, t2);
if (tl != MGUFAIL)
{
// Iterate
iterator (keylist);
// Reset variables
termlistSubstReset (tl);
}
}