don't complain big int in arg/3

This commit is contained in:
Vítor Santos Costa 2014-02-14 22:47:16 +00:00
parent 625c66015d
commit e52d8f7d7e
2 changed files with 6 additions and 1 deletions

View File

@ -11964,6 +11964,8 @@ Yap_absmi(int inp)
else if (IsLongIntTerm(d0)) {
d0 = LongIntOfTerm(d0);
} else {
if (IsBigIntTerm( d0 ))
FAIL();
saveregs();
Yap_Error(TYPE_ERROR_INTEGER,d0,"arg 1 of arg/3");
setregs();
@ -12151,6 +12153,8 @@ Yap_absmi(int inp)
else if (IsLongIntTerm(d0)) {
d0 = LongIntOfTerm(d0);
} else {
if (IsBigIntTerm( d0 ))
FAIL();
saveregs();
Yap_Error(TYPE_ERROR_INTEGER,d0,"arg 1 of arg/3");
setregs();

View File

@ -508,7 +508,8 @@ p_arg( USES_REGS1 )
else if (IsLongIntTerm(d0)) {
d0 = LongIntOfTerm(d0);
} else {
Yap_Error(TYPE_ERROR_INTEGER,d0,"arg 1 of arg/3");
if (!IsBigIntTerm( d0 ))
Yap_Error(TYPE_ERROR_INTEGER,d0,"arg 1 of arg/3");
return(FALSE);
}