summaryrefslogtreecommitdiff
path: root/tests/tcmpabs.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-02 13:10:44 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-05-02 13:10:44 +0000
commit50da9d52318ed6029c06cb3c640101eebbabe674 (patch)
tree7a802da73210a41b67de4aa450a5b177af403eba /tests/tcmpabs.c
parentfbd075f300f0ed1bbb593d45b35d16e036fb1b6a (diff)
downloadmpfr-50da9d52318ed6029c06cb3c640101eebbabe674.tar.gz
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
Diffstat (limited to 'tests/tcmpabs.c')
-rw-r--r--tests/tcmpabs.c6
1 files changed, 3 insertions, 3 deletions
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");