diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2012-05-26 15:57:43 +0200 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2012-05-26 15:57:43 +0200 |
commit | eb3632bb2177f6ea7d2f41c9722458c10159c013 (patch) | |
tree | 624a47bf95ce22460938a693f797937f5d6003cb /mpz/n_pow_ui.c | |
parent | 27ac5bf5c349d49c7103674b4a366afb6ad51cca (diff) | |
download | gmp-eb3632bb2177f6ea7d2f41c9722458c10159c013.tar.gz |
Use MPZ_REALLOC return value when possible.
Diffstat (limited to 'mpz/n_pow_ui.c')
-rw-r--r-- | mpz/n_pow_ui.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mpz/n_pow_ui.c b/mpz/n_pow_ui.c index 32a34c126..d3a902ead 100644 --- a/mpz/n_pow_ui.c +++ b/mpz/n_pow_ui.c @@ -361,8 +361,7 @@ mpz_n_pow_ui (mpz_ptr r, mp_srcptr bp, mp_size_t bsize, unsigned long int e) ralloc = (bsize*GMP_NUMB_BITS - cnt + GMP_NAIL_BITS) * e / GMP_NUMB_BITS + 5; TRACE (printf ("ralloc %ld, from bsize=%ld blimb=0x%lX cnt=%d\n", ralloc, bsize, blimb, cnt)); - MPZ_REALLOC (r, ralloc + rtwos_limbs); - rp = PTR(r); + rp = MPZ_REALLOC (r, ralloc + rtwos_limbs); /* Low zero limbs resulting from powers of 2. */ MPN_ZERO (rp, rtwos_limbs); |