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