[PATCH 0/7] Fix invalid left shift of negative value.

Andreas Schwab schwab@linux-m68k.org
Fri Oct 30 17:45:00 GMT 2015


DJ Delorie <dj@redhat.com> writes:

>> ~0 is still a negative number.
>
> ~0U ?

That does the wrong thing for types wider than int.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Binutils mailing list