summaryrefslogtreecommitdiff
path: root/tests/tset_float128.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2016-03-01 15:08:50 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2016-03-01 15:08:50 +0000
commit2bfc6ebf91a8df30a7971c6f2986288c00704569 (patch)
treee8bc5348205bad5c2268aad4a99468fcc613757a /tests/tset_float128.c
parent8fc6d7037b3c2ff914090355cbfe6d58b3253160 (diff)
downloadmpfr-2bfc6ebf91a8df30a7971c6f2986288c00704569.tar.gz
use DOUBLE_ISNAN() instead of f == f
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10163 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tset_float128.c')
-rw-r--r--tests/tset_float128.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tset_float128.c b/tests/tset_float128.c
index b2f85f463..fc6c3b06c 100644
--- a/tests/tset_float128.c
+++ b/tests/tset_float128.c
@@ -49,9 +49,10 @@ check_special (void)
exit (1);
}
f = mpfr_get_float128 (x, MPFR_RNDN);
- if (f == f)
+ if (! DOUBLE_ISNAN (f))
{
printf ("Error in mpfr_get_float128(NaN)\n");
+ printf ("got %f\n", (float) f);
exit (1);
}