This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/23757] iostreams hex formatting for signed integers treats than as unsigned
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Sep 2005 10:42:37 -0000
- Subject: [Bug libstdc++/23757] iostreams hex formatting for signed integers treats than as unsigned
- References: <20050906234941.23757.x@xman.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2005-09-07 10:42 -------
Not a but, this behavior is intended and correct. According to the Standard
(Table 57), the stdio equivalent for hex formatting will be exactly %x (or %X).
Then try printf("%x", -1) on your machine.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23757