[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#729611: GCC 4.8 -Wconversion raises false positive on shift operation

On Thu, Nov 14, 2013 at 11:32:29PM +0100, E.L. Eckter wrote:
> The following are all false positive warnings produced by -Wconversion.
>  It should be smart enough to see that there is no problem.  It usually
> it, but not in these cases.

The warning is correct.  The C standard does not define sizeof(unsigned
int) == 4, nor does it define it with a size 32 bit.  You assume both
given in your example.


Many Myths are based on truth
		-- Spock, "The Way to Eden",  stardate 5832.3

Reply to: