avoid unnecessary term construction.
This commit is contained in:
parent
2c53542bb1
commit
4a6bfe1fa0
@ -624,7 +624,7 @@ eval1(Int fi, Term t) {
|
|||||||
case long_int_e:
|
case long_int_e:
|
||||||
RFLOAT(IntegerOfTerm(t));
|
RFLOAT(IntegerOfTerm(t));
|
||||||
case double_e:
|
case double_e:
|
||||||
RFLOAT(FloatOfTerm(t));
|
return t;
|
||||||
case big_int_e:
|
case big_int_e:
|
||||||
#ifdef USE_GMP
|
#ifdef USE_GMP
|
||||||
RFLOAT(mpz_get_d(Yap_BigIntOfTerm(t)));
|
RFLOAT(mpz_get_d(Yap_BigIntOfTerm(t)));
|
||||||
|
Reference in New Issue
Block a user