BUGFIX: State hadn't been added consistently to unify: one call missed.

This commit is contained in:
Cas Cremers 2018-12-24 13:36:49 +01:00
parent 9dc240126e
commit d4bdd920f9

View File

@ -156,7 +156,7 @@ unify (Term t1, Term t2, Termlist tl, int (*callback) (), void *state)
t2 = deVar (t2);
if (t1 == t2)
{
return callback (tl);
return callback (tl, state);
}
if (!(hasTermVariable (t1) || hasTermVariable (t2)))