public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/2509] New: glibc printf length modifier (h) bug when using integer conversion (i)
@ 2006-04-04  4:32 vapier at gentoo dot org
  2006-04-04  4:33 ` [Bug libc/2509] " vapier at gentoo dot org
  2006-05-02 20:26 ` drepper at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: vapier at gentoo dot org @ 2006-04-04  4:32 UTC (permalink / raw)
  To: glibc-bugs

as a user pointed out in a Gentoo bug, the statement:
printf("%hi", 0xffff0010);
yields -65520 instead of the expected truncated value 16

oddly enough, printf("%hu", 0xffff0010); works as expected

tested Gentoo/glibc-2.4/amd64

-- 
           Summary: glibc printf length modifier (h) bug when using integer
                    conversion (i)
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: vapier at gentoo dot org
                CC: glibc-bugs at sources dot redhat dot com,toolchain at
                    gentoo dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=2509

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-02 20:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-04  4:32 [Bug libc/2509] New: glibc printf length modifier (h) bug when using integer conversion (i) vapier at gentoo dot org
2006-04-04  4:33 ` [Bug libc/2509] " vapier at gentoo dot org
2006-05-02 20:26 ` drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).