Invalid right shift in genautomata.c

Richard Henderson rth@redhat.com
Thu May 23 21:01:00 GMT 2002


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~



More information about the Gcc-bugs mailing list