diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-03-01 15:44:58 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-03-01 15:44:58 +0000 |
commit | 6acd7f78f88e5aae6bd477f42e8b2fa6ea0fd13c (patch) | |
tree | c20df9bf1e725154293dca5275d6a4a01016835d | |
parent | 64a470ba951873f428e94582bf1b81c139d598be (diff) | |
download | mpfr-6acd7f78f88e5aae6bd477f42e8b2fa6ea0fd13c.tar.gz |
[tests/tget_flt.c] Use DOUBLE_ISNAN() instead of f == f.
(merge changesets r10160,10163 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10167 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | tests/tget_flt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tget_flt.c b/tests/tget_flt.c index 0ebba8c32..f63c406bf 100644 --- a/tests/tget_flt.c +++ b/tests/tget_flt.c @@ -54,9 +54,10 @@ main (void) #if !defined(MPFR_ERRDIVZERO) mpfr_set_nan (x); f = mpfr_get_flt (x, MPFR_RNDN); - if (f == f) + if (! DOUBLE_ISNAN (f)) { printf ("Error for mpfr_get_flt(NaN)\n"); + printf ("got f=%f\n", f); exit (1); } mpfr_set_flt (x, f, MPFR_RNDN); |