diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-06-08 21:54:49 +0200 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-06-08 21:54:49 +0200 |
commit | d278771c99ea01862912a8bb2d074ed26798992e (patch) | |
tree | d283f61612e80d0bc072deb689192c57a367f1d7 /mpq/inv.c | |
parent | 621a1088c537d37f9c4e252d598436da428d067d (diff) | |
download | gmp-d278771c99ea01862912a8bb2d074ed26798992e.tar.gz |
(MPZ_NEWALLOC): New macro. Use it in mpq and some mpz.
Diffstat (limited to 'mpq/inv.c')
-rw-r--r-- | mpq/inv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } } |