diff options
-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) |