Restore 4 lines of code that UCB added that got lost when I upgraded to

the latest version of this code.  This bug was responsible for printf
formatting errors when values were rounded to 0.
This commit is contained in:
jtc 1993-12-07 18:54:32 +00:00
parent 305fdd943a
commit 865516f9d5
1 changed files with 5 additions and 1 deletions

View File

@ -86,7 +86,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char *rcsid = "$Id: strtod.c,v 1.8 1993/12/03 03:30:16 briggs Exp $";
static char *rcsid = "$Id: strtod.c,v 1.9 1993/12/07 18:54:32 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
#ifdef i386
@ -2453,6 +2453,10 @@ __dtoa
}
ret1:
Bfree(b);
if (s == s0) { /* don't return empty string */
*s++ = '0';
k = 0;
}
*s = 0;
*decpt = k + 1;
if (rve)