diff options
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -194,6 +194,11 @@ unify(Term *a, Term *b, Binding **bindings) left = right; right = tmp; } + if(left->tag == VariableTerm && right->tag == VariableTerm && right->clausenr > left->clausenr){ + Term *tmp = left; + left = right; + right = tmp; + } if(runestrcmp(left->text, L"_") == 0) continue; /* _ doesn't introduce a new binding */ |