diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-07-29 00:26:28 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-07-29 00:26:28 +0000 |
commit | 8f5e140031a944855846eb745c13e013c7b5539f (patch) | |
tree | ebf93fde53644a22e996f859192d2ce81d87c995 /stdio-common/tfformat.c | |
parent | cedb4109571cff4416235df260848de77f09f556 (diff) | |
download | glibc-8f5e140031a944855846eb745c13e013c7b5539f.tar glibc-8f5e140031a944855846eb745c13e013c7b5539f.tar.gz glibc-8f5e140031a944855846eb745c13e013c7b5539f.tar.bz2 glibc-8f5e140031a944855846eb745c13e013c7b5539f.zip |
[BZ 4858]
* stdio-common/printf_fp.c (___printf_fp): Fix special case of
#.0g and value rounded to 1.0.
* stdio-common/tfformat.c (sprint_doubles): Add two new tests.
Diffstat (limited to 'stdio-common/tfformat.c')
-rw-r--r-- | stdio-common/tfformat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stdio-common/tfformat.c b/stdio-common/tfformat.c index d67b3b504d..f9b5f7655b 100644 --- a/stdio-common/tfformat.c +++ b/stdio-common/tfformat.c @@ -4024,6 +4024,9 @@ sprint_double_type sprint_doubles[] = {__LINE__, 1.0, "1.000000e+00", "%e"}, {__LINE__, .9999999999999999, "1.000000e+00", "%e"}, + {__LINE__, 912.98, "913.0", "%#.4g"}, + {__LINE__, 50.999999, "51.000", "%#.5g"}, + {0 } }; |