fix bad error propagation in term comparison #53
This commit is contained in:
parent
ec595374a6
commit
8fcc534a19
@ -11325,8 +11325,10 @@ Yap_absmi(int inp)
|
||||
d0 = (CELL) (f) (d0,d1);
|
||||
setregs();
|
||||
}
|
||||
if (PREG == FAILCODE) {
|
||||
JMPNext();
|
||||
}
|
||||
if (!d0) {
|
||||
if (PREG != FAILCODE)
|
||||
PREG = PREG->u.plxxs.f;
|
||||
JMPNext();
|
||||
}
|
||||
|
@ -546,6 +546,7 @@ a_cmp(Term t1, Term t2)
|
||||
return(int_cmp(IntegerOfTerm(t1)-IntegerOfTerm(t2)));
|
||||
}
|
||||
t1 = Yap_Eval(t1);
|
||||
if (!t1) return FALSE;
|
||||
if (IsIntegerTerm(t1)) {
|
||||
Int i1 = IntegerOfTerm(t1);
|
||||
t2 = Yap_Eval(t2);
|
||||
|
Reference in New Issue
Block a user