don't complain big int in arg/3
This commit is contained in:
parent
625c66015d
commit
e52d8f7d7e
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user