don't pass pointers to mpz_t

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1518 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2006-01-17 14:53:20 +00:00
parent eb01b47d5f
commit 2cc076bb10
2 changed files with 7 additions and 4 deletions

View File

@@ -249,7 +249,7 @@ p_unot(Term t E_ARGS)
#ifdef USE_GMP
case big_int_e:
{
mpz_t new;
MP_INT *new = TMP_BIG();
mpz_init_set(new, Yap_BigIntOfTerm(t));
mpz_com(new, new);
@@ -1579,7 +1579,7 @@ p_integer(Term t E_ARGS)
RINT((Int) dbl);
} else {
#ifdef USE_GMP
mpz_t new;
MP_INT *new = TMP_BIG();
mpz_init_set_d(new, dbl);
RBIG(new);