diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-12 06:59:23 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-12 06:59:23 +0000 |
commit | d8a778a3193515e4f8569f02f91bfcd0d4d2e0fe (patch) | |
tree | 943a34572f1c310f56c6d1d6596bad93a4ebda25 /gcc/config/fp-bit.c | |
parent | 8952c8767e4ffcf80f87ed33d3d325abdd62dfb2 (diff) | |
download | gcc-d8a778a3193515e4f8569f02f91bfcd0d4d2e0fe.tar.gz |
* 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
Diffstat (limited to 'gcc/config/fp-bit.c')
-rw-r--r-- | gcc/config/fp-bit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c index 3eb9ec75893..94e11e7e3d7 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) |