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

x at xman dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 7 16:04:00 GMT 2005


------- Additional Comments From x at xman dot org  2005-09-07 16:03 -------
The ANSI definition for %x (or %X) only covers unsigned integers. Surely then
doing hex formatting on a signed integer would at the very least be undefined
behavior.

-- 


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



More information about the Gcc-bugs mailing list