diff options
author | Elliott Hughes <enh@google.com> | 2014-04-10 17:48:14 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-04-16 15:15:52 -0700 |
commit | 4bd97cee28dd815fff54fc97560be60d566c1fa5 (patch) | |
tree | f337de53e57aee78ad4e574c652fdeee679630b6 /libc/stdio | |
parent | 26c2bb84dd5cbd9ab43a5f0ebc2635bc3b64be3d (diff) | |
download | bionic-4bd97cee28dd815fff54fc97560be60d566c1fa5.zip bionic-4bd97cee28dd815fff54fc97560be60d566c1fa5.tar.gz bionic-4bd97cee28dd815fff54fc97560be60d566c1fa5.tar.bz2 |
Switch to gdtoa.
This gives us a real strtold for LP64 and fixes various LP64
bugs.
Bug: 13563801
Change-Id: I277858d718ee746e136b6b6308a495ba50dfa488
Diffstat (limited to 'libc/stdio')
-rw-r--r-- | libc/stdio/vfprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/stdio/vfprintf.c b/libc/stdio/vfprintf.c index e33c105..76ca659 100644 --- a/libc/stdio/vfprintf.c +++ b/libc/stdio/vfprintf.c @@ -146,7 +146,7 @@ __sbprintf(FILE *fp, const char *fmt, va_list ap) #define DEFPREC 6 static char *cvt(double, int, int, char *, int *, int, int *); -extern void freedtoa(char *); +extern void __freedtoa(char *); static int exponent(char *, int, int); #else /* no FLOATING_POINT */ #define BUF 40 @@ -550,7 +550,7 @@ reswitch: switch (ch) { break; } - if (dtoaresult != NULL) freedtoa(dtoaresult); + if (dtoaresult != NULL) __freedtoa(dtoaresult); flags |= FPT; dtoaresult = cp = cvt(_double, prec, flags, &softsign, &expt, ch, &ndig); @@ -846,7 +846,7 @@ done: error: #ifdef FLOATING_POINT if (dtoaresult != NULL) { - freedtoa(dtoaresult); + __freedtoa(dtoaresult); } #endif if (argtable != NULL && argtable != statargtable) { |