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:11:00 +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 #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-03-18 15:10:47 UTC ---
On Fri, 18 Mar 2011, christophe.lyon at st dot com wrote:
> I have noticed that inttypes.h formats such as PRIx8 are actually defined as
> "x", while it should be "hhx". In the current form, too many bits are printed.
This makes no difference for any valid arguments to those formats (i.e.,
arguments promoted from the relevant type).
> Note that I am unsure why PRI*FAST16 and PRI*FAST32 currently use
> __PRIPTR_PREFIX, and I have changed the PRI*FAST16 variants to use "h" instead.
Please read stdint.h. The formats need to match the types there, and the
16-bit and 32-bit *fast* types are int for 32-bit systems and long for
64-bit systems, so the formats must match that.
--
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.