diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2012-11-28 00:43:23 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2012-11-28 00:43:23 +0100 |
commit | 01fa3e75f5114c931f24a47106c94890becb36f7 (patch) | |
tree | 0947ee419f7a94f6e75babda0a389b3be9c6a801 /mpz | |
parent | e8d3fe73b75a2c74c82ab5744c5d381f579183c4 (diff) | |
download | gmp-01fa3e75f5114c931f24a47106c94890becb36f7.tar.gz |
Move new_b out since it lives on through b.
Diffstat (limited to 'mpz')
-rw-r--r-- | mpz/powm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/powm.c b/mpz/powm.c index 0ef894a9a..6e33da12d 100644 --- a/mpz/powm.c +++ b/mpz/powm.c @@ -56,6 +56,7 @@ mpz_powm (mpz_ptr r, mpz_srcptr b, mpz_srcptr e, mpz_srcptr m) mp_ptr rp, tp; mp_srcptr bp, ep, mp; mp_size_t rn, bn, es, en, itch; + mpz_t new_b; /* note: value lives long via 'b' */ TMP_DECL; n = ABSIZ(m); @@ -69,7 +70,6 @@ mpz_powm (mpz_ptr r, mpz_srcptr b, mpz_srcptr e, mpz_srcptr m) es = SIZ(e); if (UNLIKELY (es <= 0)) { - mpz_t new_b; if (es == 0) { /* b^0 mod m, b is anything and m is non-zero. |