mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
* misc/efgcvt_r.c (APPEND): Handle printing of 0.0 correctly. Reported by Gran Uddeborg <goeran@uddeborg.pp.se>.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
1998-02-27 Ulrich Drepper <drepper@cygnus.com>
|
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
|
* misc/tst-efgcvt.c (ecvt_tests): Add new test case for reported
|
||||||
bug.
|
bug.
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ APPEND (FUNC_PREFIX, fcvt_r) (value, ndigit, decpt, sign, buf, len)
|
|||||||
++i;
|
++i;
|
||||||
while (i < n && !isdigit (buf[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
|
/* We must not have leading zeroes. Strip them all out and
|
||||||
adjust *DECPT if necessary. */
|
adjust *DECPT if necessary. */
|
||||||
|
Reference in New Issue
Block a user