[Bug c/108580] gcc treats shifts as signed operation, does wrong promotion

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 28 13:22:05 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108580

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Wrong again.
In c, 1 is int, if you want unsigned int type use 1u.

This forum is not to learn C and it is obvious you don't know the basics of the
language.


More information about the Gcc-bugs mailing list