summaryrefslogtreecommitdiff
path: root/mpn_exp.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2005-01-20 11:23:51 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2005-01-20 11:23:51 +0000
commit524f117b8c0eb468e995c43778a659cb9af05ddf (patch)
tree932bdf227b3851d2c1e1ec7ce81ad2dbd01922c0 /mpn_exp.c
parent4dd397dd7b685dc48b6c4fea81c2fdc090f92915 (diff)
downloadmpfr-524f117b8c0eb468e995c43778a659cb9af05ddf.tar.gz
fixed problems in get_str for huge exponent
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3194 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpn_exp.c')
-rw-r--r--mpn_exp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpn_exp.c b/mpn_exp.c
index ddead85ea..a32ce23d9 100644
--- a/mpn_exp.c
+++ b/mpn_exp.c
@@ -123,7 +123,7 @@ mpfr_mpn_exp (mp_limb_t *a, mp_exp_t *exp_r, int b, mp_exp_t e, size_t n)
(mpn_scan1 (c + 2 * n1, 0) < (n - 2 * n1) * BITS_PER_MP_LIMB))
error = i;
- if (e & (1 << i))
+ if (e & ((mp_exp_t) 1 << i))
{
/* multiply A by B */
c[2 * n - 1] = mpn_mul_1 (c + n - 1, a, n, B);