X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffunctional%2Fsnprintf.c;h=600cd118312f229905371e0714c8f6d03a228273;hb=09c020c3edd7978b22a73d1529a049222a615262;hp=2c94d02b69d8240d64d44bc37640201c31fd4656;hpb=9f72a5b491a7dc707fcf2e3dee1f8cd53e19ec9a;p=libc-test diff --git a/src/functional/snprintf.c b/src/functional/snprintf.c index 2c94d02..600cd11 100644 --- a/src/functional/snprintf.c +++ b/src/functional/snprintf.c @@ -86,7 +86,8 @@ static const struct { { "%f", 1.3, "1.300000" }, { "%f", 1.4, "1.400000" }, { "%f", 1.5, "1.500000" }, - { "%.4f", 1.06125, "1.0612" }, + { "%.4f", 1.06125, "1.0613" }, /* input is not representible exactly as double */ + { "%.4f", 1.03125, "1.0312" }, /* 0x1.08p0 */ { "%.2f", 1.375, "1.38" }, { "%.1f", 1.375, "1.4" }, { "%.1lf", 1.375, "1.4" },