fp-bit.c (pack_d): Cast to ``fractype'' for long long shifts.
authorMomchil Velikov <velco@fadata.bg>
Wed, 12 Dec 2001 06:59:23 +0000 (08:59 +0200)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 12 Dec 2001 06:59:23 +0000 (22:59 -0800)
        * config/fp-bit.c (pack_d): Cast to ``fractype'' for long long
        shifts.

From-SVN: r47923

gcc/ChangeLog
gcc/config/fp-bit.c

index 391106285b054b161f3e1f56d22969956c2d3152..ed43e4d9205ce938dddb02cf2fdc062b1fe73715 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * config/alpha/alpha.h (TARGET_FIXUP_EV5_PREFETCH): New.
index 3eb9ec75893440467d7476b5c01536373108754e..94e11e7e3d7070c4f172907ad4b749e18dc8f955 100644 (file)
@@ -222,7 +222,7 @@ pack_d ( fp_number_type *  src)
            }
          else
            {
-             int lowbit = (fraction & ((1 << shift) - 1)) ? 1 : 0;
+             int lowbit = (fraction & (((fractype)1 << shift) - 1)) ? 1 : 0;
              fraction = (fraction >> shift) | lowbit;
            }
          if ((fraction & GARDMASK) == GARDMSB)