summaryrefslogtreecommitdiff
path: root/mpq/get_den.c
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2012-06-08 21:54:49 +0200
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2012-06-08 21:54:49 +0200
commitd278771c99ea01862912a8bb2d074ed26798992e (patch)
treed283f61612e80d0bc072deb689192c57a367f1d7 /mpq/get_den.c
parent621a1088c537d37f9c4e252d598436da428d067d (diff)
downloadgmp-d278771c99ea01862912a8bb2d074ed26798992e.tar.gz
(MPZ_NEWALLOC): New macro. Use it in mpq and some mpz.
Diffstat (limited to 'mpq/get_den.c')
-rw-r--r--mpq/get_den.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpq/get_den.c b/mpq/get_den.c
index 19d0fcd45..6a969dfe3 100644
--- a/mpq/get_den.c
+++ b/mpq/get_den.c
@@ -26,7 +26,7 @@ mpq_get_den (mpz_ptr den, mpq_srcptr src)
mp_size_t size = SIZ(DEN(src));
mp_ptr dp;
- dp = MPZ_REALLOC (den, size);
+ dp = MPZ_NEWALLOC (den, size);
SIZ(den) = size;
MPN_COPY (dp, PTR(DEN(src)), size);
}