always deref arguments to built-ins.

This commit is contained in:
Vítor Santos Costa 2014-10-02 14:32:26 +01:00
parent 74c136b986
commit a1022f8237

View File

@ -794,7 +794,9 @@ a_eq(Term t1, Term t2)
{
CACHE_REGS
/* A =:= B */
int out;
Int out;
t1 = Deref(t1);
t2 = Deref(t2);
if (IsVarTerm(t1)) {
Yap_Error(INSTANTIATION_ERROR, t1, "=:=/2");