summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-09-30 08:08:59 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-09-30 08:08:59 +0000
commit8a3fe5601f0c0d4da5a89cdc22bf1481086d0158 (patch)
tree36dd887b4a876111e8c8e9f5b2a7a3cb93cd783d
parente915499c43740f5b8df672536c791d7391921a32 (diff)
downloadmpfr-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/get_sj.c b/get_sj.c
index 062f30c38..75d8ce178 100644
--- a/get_sj.c
+++ b/get_sj.c
@@ -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));
}
}
}