summaryrefslogtreecommitdiff
path: root/tests/tsin.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tsin.c')
-rw-r--r--tests/tsin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tsin.c b/tests/tsin.c
index 5e04aee8a..68ccd006d 100644
--- a/tests/tsin.c
+++ b/tests/tsin.c
@@ -36,7 +36,7 @@ check53 (double x, double sin_x, mp_rnd_t rnd_mode)
mpfr_init2 (s, 53);
mpfr_set_d (xx, x, rnd_mode); /* should be exact */
mpfr_sin (s, xx, rnd_mode);
- if (mpfr_get_d1 (s) != sin_x && (!isnan(sin_x) || !mpfr_nan_p(s)))
+ if (mpfr_get_d1 (s) != sin_x && !(Isnan(sin_x) && mpfr_nan_p(s)))
{
fprintf (stderr, "mpfr_sin failed for x=%1.20e, rnd=%s\n", x,
mpfr_print_rnd_mode (rnd_mode));