Fix a test that doesn't work on architectures where long double is no

wider than double.  Thanks to Ian Lepore for catching the bug.
This commit is contained in:
David Schultz 2012-01-14 08:11:40 +00:00
parent b60ee81e3d
commit 3e7ed66b1e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230102

View File

@ -211,7 +211,9 @@ main(int argc, char *argv[])
test(idd(nextafter(DBL_MAX, INFINITY)), INFINITY, ex_over);
test(idd(nextafter(INFINITY, 0.0)), DBL_MAX, 0);
test(idd(nexttoward(DBL_MAX, DBL_MAX * 2.0L)), INFINITY, ex_over);
#if LDBL_MANT_DIG > 53
test(idd(nexttoward(INFINITY, DBL_MAX * 2.0L)), DBL_MAX, 0);
#endif
testf(idf(nextafterf(FLT_MAX, INFINITY)), INFINITY, ex_over);
testf(idf(nextafterf(INFINITY, 0.0)), FLT_MAX, 0);