Commit 4a696ca8 by Momchil Velikov Committed by Richard Henderson

fp-bit.c (pack_d): Cast to ``fractype'' for long long shifts.

        * config/fp-bit.c (pack_d): Cast to ``fractype'' for long long
        shifts.

From-SVN: r47923
parent 14291bc7
2001-12-11 Momchil Velikov <velco@fadata.bg>
* config/fp-bit.c (pack_d): Cast to ``fractype'' for long long
shifts.
2001-12-11 Richard Henderson <rth@redhat.com> 2001-12-11 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.h (TARGET_FIXUP_EV5_PREFETCH): New. * config/alpha/alpha.h (TARGET_FIXUP_EV5_PREFETCH): New.
......
...@@ -222,7 +222,7 @@ pack_d ( fp_number_type * src) ...@@ -222,7 +222,7 @@ pack_d ( fp_number_type * src)
} }
else else
{ {
int lowbit = (fraction & ((1 << shift) - 1)) ? 1 : 0; int lowbit = (fraction & (((fractype)1 << shift) - 1)) ? 1 : 0;
fraction = (fraction >> shift) | lowbit; fraction = (fraction >> shift) | lowbit;
} }
if ((fraction & GARDMASK) == GARDMSB) if ((fraction & GARDMASK) == GARDMSB)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment