diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2016-12-28 18:39:40 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2016-12-28 18:39:40 +0100 |
commit | bc7028c9cd73b6dc74f55c0972c2588717a8dd92 (patch) | |
tree | eb3cf8b36ec47507b793c879985dc5139241eb98 /mpz/iset.c | |
parent | 1e88b60e701eddf008f3bb4d8212761d79a90082 (diff) | |
download | gmp-bc7028c9cd73b6dc74f55c0972c2588717a8dd92.tar.gz |
Use MPZ_NEWALLOC and other macros result
Diffstat (limited to 'mpz/iset.c')
-rw-r--r-- | mpz/iset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mpz/iset.c b/mpz/iset.c index adff8bb99..252cada29 100644 --- a/mpz/iset.c +++ b/mpz/iset.c @@ -42,9 +42,9 @@ mpz_init_set (mpz_ptr w, mpz_srcptr u) size = ABS (usize); ALLOC (w) = MAX (size, 1); - PTR (w) = __GMP_ALLOCATE_FUNC_LIMBS (ALLOC (w)); + wp = __GMP_ALLOCATE_FUNC_LIMBS (ALLOC (w)); - wp = PTR (w); + PTR (w) = wp; up = PTR (u); MPN_COPY (wp, up, size); |