From d8a778a3193515e4f8569f02f91bfcd0d4d2e0fe Mon Sep 17 00:00:00 2001 From: rth Date: Wed, 12 Dec 2001 06:59:23 +0000 Subject: [PATCH] * config/fp-bit.c (pack_d): Cast to ``fractype'' for long long shifts. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47923 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/fp-bit.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 391106285b05..ed43e4d9205c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-12-11 Momchil Velikov + + * config/fp-bit.c (pack_d): Cast to ``fractype'' for long long + shifts. + 2001-12-11 Richard Henderson * config/alpha/alpha.h (TARGET_FIXUP_EV5_PREFETCH): New. diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c index 3eb9ec758934..94e11e7e3d70 100644 --- a/gcc/config/fp-bit.c +++ b/gcc/config/fp-bit.c @@ -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) -- 2.11.4.GIT