diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-05-02 13:10:44 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-05-02 13:10:44 +0000 |
commit | 50da9d52318ed6029c06cb3c640101eebbabe674 (patch) | |
tree | 7a802da73210a41b67de4aa450a5b177af403eba /tests/tcmp.c | |
parent | fbd075f300f0ed1bbb593d45b35d16e036fb1b6a (diff) | |
download | mpfr-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/tcmp.c')
-rw-r--r-- | tests/tcmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tcmp.c b/tests/tcmp.c index d3e9489f7..13ef26d94 100644 --- a/tests/tcmp.c +++ b/tests/tcmp.c @@ -191,21 +191,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"); |