* misc/efgcvt_r.c (APPEND): Handle printing of 0.0 correctly.
Reported by Göran Uddeborg <goeran@uddeborg.pp.se>.
1998-02-27 Ulrich Drepper <drepper@cygnus.com>
+ * misc/efgcvt_r.c (APPEND): Handle printing of 0.0 correctly.
+ Reported by Göran Uddeborg <goeran@uddeborg.pp.se>.
+
* misc/tst-efgcvt.c (ecvt_tests): Add new test case for reported
bug.
++i;
while (i < n && !isdigit (buf[i]));
- if (*decpt == 1 && buf[0] == '0')
+ if (*decpt == 1 && buf[0] == '0' && value != 0.0)
{
/* We must not have leading zeroes. Strip them all out and
adjust *DECPT if necessary. */