This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Invalid right shift in genautomata.c


On Thu, May 23, 2002 at 05:59:55PM -0400, Vladimir Makarov wrote:
> !       hash_value >>= sizeof (unsigned) * CHAR_BIT;

For future reference, the way to get this without warning is

	hash_value = hash_value >> (sizeof (unsigned) * CHAR_BIT - 1) >> 1;


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]