diff options
author | daney <daney@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-04-05 15:31:42 +0000 |
---|---|---|
committer | daney <daney@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-04-05 15:31:42 +0000 |
commit | 5f8a2cf4e4386ffa4bfb819924b42b5a22b5f824 (patch) | |
tree | 5e42a8be334807d9f0c75c9d13f791b7c6ec06bb /tests/tcmp_ui.c | |
parent | 14ff2cfdab9e878d8ae86d7142383161a00287af (diff) | |
download | mpfr-5f8a2cf4e4386ffa4bfb819924b42b5a22b5f824.tar.gz |
fixed bug for mpfr_cmp_ui (Inf, 0)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1053 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcmp_ui.c')
-rw-r--r-- | tests/tcmp_ui.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/tcmp_ui.c b/tests/tcmp_ui.c index 83fc0a74e..f4563b3bd 100644 --- a/tests/tcmp_ui.c +++ b/tests/tcmp_ui.c @@ -73,6 +73,14 @@ main (void) exit(1); } + mpfr_set_ui (x, 0, GMP_RNDN); + mpfr_ui_div (x, 1, x, GMP_RNDU); + if (mpfr_cmp_ui (x, 0) == 0) + { + fprintf (stderr, "Error in mpfr_cmp_ui (Inf, 0)\n"); + exit (1); + } + mpfr_clear(x); return 0; |