From 5f8a2cf4e4386ffa4bfb819924b42b5a22b5f824 Mon Sep 17 00:00:00 2001 From: daney Date: Thu, 5 Apr 2001 15:31:42 +0000 Subject: 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 --- tests/tcmp_ui.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/tcmp_ui.c') 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; -- cgit v1.2.1