This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/12593] PRI*8 and PRI*16 formats use too many bits


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]