This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11783] type promotion for printf under gcc
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Aug 2003 14:03:53 -0000
- Subject: [Bug c/11783] type promotion for printf under gcc
- References: <20030803132533.11783.achim.gaedke@physik.tu-darmstadt.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.