diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-01-20 11:23:51 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-01-20 11:23:51 +0000 |
commit | 524f117b8c0eb468e995c43778a659cb9af05ddf (patch) | |
tree | 932bdf227b3851d2c1e1ec7ce81ad2dbd01922c0 /mpn_exp.c | |
parent | 4dd397dd7b685dc48b6c4fea81c2fdc090f92915 (diff) | |
download | mpfr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |