This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12593] PRI*8 and PRI*16 formats use too many bits
- From: "joseph at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 18 Mar 2011 15:49:11 +0000
- Subject: [Bug libc/12593] PRI*8 and PRI*16 formats use too many bits
- Auto-submitted: auto-generated
- References: <bug-12593-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12593
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-03-18 15:49:03 UTC ---
On Fri, 18 Mar 2011, christophe.lyon at st dot com wrote:
> Well, if I compile & execute this sample code, there is a difference:
This code is not a valid program; it has undefined behavior at runtime.
The argument to PRIx8 must be uint8_t, not char (which I suppose is signed
on your system); that for PRIx16 must be uint16_t; that for PRIx32 must be
uint32_t.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.