diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-09-30 08:08:59 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-09-30 08:08:59 +0000 |
commit | 8a3fe5601f0c0d4da5a89cdc22bf1481086d0158 (patch) | |
tree | 36dd887b4a876111e8c8e9f5b2a7a3cb93cd783d | |
parent | e915499c43740f5b8df672536c791d7391921a32 (diff) | |
download | mpfr-8a3fe5601f0c0d4da5a89cdc22bf1481086d0158.tar.gz |
Fix a bug if sizeof(intmax_t) == sizeof(mp_limb_t)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3012 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | get_sj.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -95,8 +95,8 @@ mpfr_get_sj (mpfr_srcptr f, mpfr_rnd_t rnd) { sh -= BITS_PER_MP_LIMB; r += (sh >= 0 - ? (intmax_t) xp[n] << sh - : (intmax_t) xp[n] >> (-sh)); + ? (uintmax_t) xp[n] << sh + : (uintmax_t) xp[n] >> (-sh)); } } else @@ -105,8 +105,8 @@ mpfr_get_sj (mpfr_srcptr f, mpfr_rnd_t rnd) { sh -= BITS_PER_MP_LIMB; r -= (sh >= 0 - ? (intmax_t) xp[n] << sh - : (intmax_t) xp[n] >> (-sh)); + ? (uintmax_t) xp[n] << sh + : (uintmax_t) xp[n] >> (-sh)); } } } |