This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2509] New: glibc printf length modifier (h) bug when using integer conversion (i)
- From: "vapier at gentoo dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 4 Apr 2006 04:32:45 -0000
- Subject: [Bug libc/2509] New: glibc printf length modifier (h) bug when using integer conversion (i)
- Reply-to: sourceware-bugzilla at sourceware dot org
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.