]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 27 Feb 1998 11:52:41 +0000 (11:52 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 27 Feb 1998 11:52:41 +0000 (11:52 +0000)
* misc/efgcvt_r.c (APPEND): Handle printing of 0.0 correctly.
Reported by Göran Uddeborg <goeran@uddeborg.pp.se>.

ChangeLog
misc/efgcvt_r.c

index 690d736d7d40d08b5375b7bfb7e186397b4bbacc..94acd299de0e72880769f375ccaea07ecbbc39d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 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.
 
index 9e586e15a846ed321971dcb6b977cfb24ed69c02..6434b9deea1e13cd90a295e590981c8fe4584526 100644 (file)
@@ -106,7 +106,7 @@ APPEND (FUNC_PREFIX, fcvt_r) (value, ndigit, decpt, sign, buf, len)
        ++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.  */
This page took 0.049466 seconds and 5 git commands to generate.