[Bug c/11783] type promotion for printf under gcc

pinskia at physics dot uc dot edu gcc-bugzilla@gcc.gnu.org
Sun Aug 3 14:03:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11783


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From pinskia at physics dot uc dot edu  2003-08-03 14:03 -------
Not a bug as you are negativing an unsigned number and that number stays positive 
(because -unsigned = unsigned) so the number in this case will be large (-3U=
4294967293U).  So this is not a GCC bug at all.



More information about the Gcc-bugs mailing list