diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-03-15 13:26:42 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-03-15 13:26:42 +0000 |
commit | 8432def2dd87ec2099bb3d6e20f37ecb7ca40bb0 (patch) | |
tree | 7ad4d6f8a08218bb05386bdaf86053374ffca2da /print_raw.c | |
parent | ea6dca2a8a7e7601ce8c03fa308227c09fe70e9c (diff) | |
download | mpfr-8432def2dd87ec2099bb3d6e20f37ecb7ca40bb0.tar.gz |
Fix a cast problem on some systems (sizeof(mp_limb_t) > sizeof(unsigned long)).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2840 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'print_raw.c')
-rw-r--r-- | print_raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print_raw.c b/print_raw.c index 1da187105..cbea89f85 100644 --- a/print_raw.c +++ b/print_raw.c @@ -87,7 +87,7 @@ mpfr_print_mant_binary(const char *str, const mp_limb_t *p, mp_prec_t r) { for(i = BITS_PER_MP_LIMB-1 ; i >=0 ; i--) { - c = (p[n] & (1L<<i)) ? '1' : '0'; + c = (p[n] & (((mp_limb_t)1L)<<i)) ? '1' : '0'; putchar(c); count++; if (count == r) |