summaryrefslogtreecommitdiff
path: root/mpz/lucnum_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/lucnum_ui.c
parent1e88b60e701eddf008f3bb4d8212761d79a90082 (diff)
downloadgmp-bc7028c9cd73b6dc74f55c0972c2588717a8dd92.tar.gz
Use MPZ_NEWALLOC and other macros result
Diffstat (limited to 'mpz/lucnum_ui.c')
-rw-r--r--mpz/lucnum_ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/lucnum_ui.c b/mpz/lucnum_ui.c
index 7ac09fe48..a13584bb4 100644
--- a/mpz/lucnum_ui.c
+++ b/mpz/lucnum_ui.c
@@ -76,7 +76,7 @@ mpz_lucnum_ui (mpz_ptr ln, unsigned long n)
since square or mul used below might need an extra limb over the true
size */
lalloc = MPN_FIB2_SIZE (n) + 2;
- lp = MPZ_REALLOC (ln, lalloc);
+ lp = MPZ_NEWALLOC (ln, lalloc);
TMP_MARK;
xalloc = lalloc;