summaryrefslogtreecommitdiff
path: root/mpq/inv.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpq/inv.c')
-rw-r--r--mpq/inv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpq/inv.c b/mpq/inv.c
index 0c6b5e8f1..48f0ae75f 100644
--- a/mpq/inv.c
+++ b/mpq/inv.c
@@ -51,10 +51,10 @@ mpq_inv (mpq_ptr dest, mpq_srcptr src)
mp_ptr dp;
den_size = ABS (den_size);
- dp = MPZ_REALLOC (NUM(dest), den_size);
+ dp = MPZ_NEWALLOC (NUM(dest), den_size);
MPN_COPY (dp, PTR(DEN(src)), den_size);
- dp = MPZ_REALLOC (DEN(dest), num_size);
+ dp = MPZ_NEWALLOC (DEN(dest), num_size);
MPN_COPY (dp, PTR(NUM(src)), num_size);
}
}