From d8a778a3193515e4f8569f02f91bfcd0d4d2e0fe Mon Sep 17 00:00:00 2001 From: rth Date: Wed, 12 Dec 2001 06:59:23 +0000 Subject: * 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/config/fp-bit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config/fp-bit.c') 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) -- cgit v1.2.1