summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2019-09-02 19:01:24 -0700
committerRuss Allbery <eagle@eyrie.org>2019-09-02 19:01:24 -0700
commit1aea537462e6a5a6695f0ed52e162a4395ac1abd (patch)
tree30dacd2d060ac72c93eb08ff49afe8a4b28aed48 /tests
parent43a87b104316ac139fd1c7366ae3d48e8755b983 (diff)
Lower snprintf floating point precision more
Reduce the precision to 6 from 7, since that corresponds to 7 digits when there's one significant digit to the left of the point, and that in turn is the proper 32-bit floating point precision.
Diffstat (limited to 'tests')
-rw-r--r--tests/portable/snprintf-t.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/portable/snprintf-t.c b/tests/portable/snprintf-t.c
index d67f15f..d2da49a 100644
--- a/tests/portable/snprintf-t.c
+++ b/tests/portable/snprintf-t.c
@@ -41,8 +41,8 @@ int test_vsnprintf(char *str, size_t count, const char *fmt, va_list args);
static const char string[] = "abcdefghijklmnopqrstuvwxyz0123456789";
static const char *const fp_formats[] = {
- "%-1.5f", "%1.5f", "%31.7f", "%10.5f", "% 10.5f", "%+22.7f",
- "%+4.7f", "%01.3f", "%3.1f", "%3.2f", "%.0f", "%.1f",
+ "%-1.5f", "%1.5f", "%31.6f", "%10.5f", "% 10.5f", "%+22.6f",
+ "%+4.6f", "%01.3f", "%3.1f", "%3.2f", "%.0f", "%.1f",
"%f",
/* %e and %g formats aren't really implemented yet. */