summaryrefslogtreecommitdiff
path: root/tests/tset_d.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2003-01-16 16:01:55 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2003-01-16 16:01:55 +0000
commit53e4fc7c14c9c4b9b3be6b941d853ac1fcc7f81a (patch)
tree6ca0f6baf11496ffc528a474687f4326c00e9796 /tests/tset_d.c
parent3d3b3c4428015d063a0b8b5b1519588ab37920d1 (diff)
downloadmpfr-53e4fc7c14c9c4b9b3be6b941d853ac1fcc7f81a.tar.gz
replaced isnan() by Isnan()
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2180 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tset_d.c')
-rw-r--r--tests/tset_d.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/tset_d.c b/tests/tset_d.c
index 5fab50807..5a30148a4 100644
--- a/tests/tset_d.c
+++ b/tests/tset_d.c
@@ -118,16 +118,19 @@ main (int argc, char *argv[])
#endif
mpfr_set_d (x, d, 0);
dd = mpfr_get_d1 (x);
- if (d != dd && (!isnan(d) || !isnan(dd)))
+ if (d != dd && !(Isnan(d) && Isnan(dd)))
{
- fprintf(stderr,
- "Mismatch on : %1.18g != %1.18g\n", d, mpfr_get_d1 (x));
- mpfr_print_binary(x); putchar('\n');
- exit(1);
+ fprintf (stderr,
+ "Mismatch on : %1.18g != %1.18g\n", d, mpfr_get_d1 (x));
+ mpfr_print_binary (x);
+ putchar ('\n');
+ exit (1);
}
}
- mpfr_clear(x); mpfr_clear(y); mpfr_clear(z);
+ mpfr_clear (x);
+ mpfr_clear (y);
+ mpfr_clear (z);
tests_end_mpfr ();
return 0;