This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/23757] iostreams hex formatting for signed integers treats than as unsigned


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]