This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Printf / 64-bit bug
- From: "Jon Beniston" <jon at beniston dot com>
- To: <newlib at sources dot redhat dot com>
- Date: Fri, 7 Nov 2003 10:30:34 -0000
- Subject: Printf / 64-bit bug
- Reply-to: <jon at beniston dot com>
Hi,
I think I've noticed a bug in libc/stdio/vfprintf.c that causes it to
use
64-bit arithmetic even though it is not configured to. At the top of the
file, we have
#define _NO_LONGLONG
#if defined WANT_PRINTF_LONG_LONG && defined __GNUC__
# undef _NO_LONGLONG
#endif
However, later on, there are a couple of uses of the following macro:
#ifndef _NO_LONG_LONG
Which I presume should be:
#ifndef _NO_LONGLONG
This bug obviously has a significant code-size penalty on my 16-bit
target.
Cheers,
JonB