summaryrefslogtreecommitdiff
path: root/tests/tset_d.c
diff options
context:
space:
mode:
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;