summaryrefslogtreecommitdiff
path: root/mpz/gcd_ui.c
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2016-12-28 18:39:40 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2016-12-28 18:39:40 +0100
commitbc7028c9cd73b6dc74f55c0972c2588717a8dd92 (patch)
treeeb3cf8b36ec47507b793c879985dc5139241eb98 /mpz/gcd_ui.c
parent1e88b60e701eddf008f3bb4d8212761d79a90082 (diff)
downloadgmp-bc7028c9cd73b6dc74f55c0972c2588717a8dd92.tar.gz
Use MPZ_NEWALLOC and other macros result
Diffstat (limited to 'mpz/gcd_ui.c')
-rw-r--r--mpz/gcd_ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/gcd_ui.c b/mpz/gcd_ui.c
index 4da942038..ee5bff81c 100644
--- a/mpz/gcd_ui.c
+++ b/mpz/gcd_ui.c
@@ -63,7 +63,7 @@ mpz_gcd_ui (mpz_ptr w, mpz_srcptr u, unsigned long int v)
{
if (u != w)
{
- MPZ_REALLOC (w, un);
+ MPZ_NEWALLOC (w, un);
MPN_COPY (PTR(w), PTR(u), un);
}
SIZ(w) = un;