From 50da9d52318ed6029c06cb3c640101eebbabe674 Mon Sep 17 00:00:00 2001 From: pelissip Date: Mon, 2 May 2005 13:10:44 +0000 Subject: mpfr_cmp_str checks for NAN. Add macro mpfr_cmp0 in mpfr-test. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3506 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tcmpabs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/tcmpabs.c') diff --git a/tests/tcmpabs.c b/tests/tcmpabs.c index 54869dfa0..d7a36954c 100644 --- a/tests/tcmpabs.c +++ b/tests/tcmpabs.c @@ -109,21 +109,21 @@ main (void) /* Check for NAN */ mpfr_set_nan (xx); mpfr_clear_erangeflag (); - c = mpfr_cmp (xx, yy); + c = (mpfr_cmp) (xx, yy); if (c != 0 || !mpfr_erangeflag_p () ) { printf ("NAN error (1)\n"); exit (1); } mpfr_clear_erangeflag (); - c = mpfr_cmp (yy, xx); + c = (mpfr_cmp) (yy, xx); if (c != 0 || !mpfr_erangeflag_p () ) { printf ("NAN error (2)\n"); exit (1); } mpfr_clear_erangeflag (); - c = mpfr_cmp (xx, xx); + c = (mpfr_cmp) (xx, xx); if (c != 0 || !mpfr_erangeflag_p () ) { printf ("NAN error (3)\n"); -- cgit v1.2.1