diff options
Diffstat (limited to 'tests/tmul_ui.c')
-rw-r--r-- | tests/tmul_ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tmul_ui.c b/tests/tmul_ui.c index ad54b9af5..f8defca92 100644 --- a/tests/tmul_ui.c +++ b/tests/tmul_ui.c @@ -136,7 +136,7 @@ main (int argc, char *argv[]) mpfr_set_str (x, /*1.0/3.0*/ "0.333333333333333333333333333333333", 10, GMP_RNDZ); mpfr_mul_ui (x, x, 3, GMP_RNDU); - if (mpfr_get_d1 (x) != 1.0) + if (mpfr_cmp_ui (x, 1)) { printf ("Error in mpfr_mul_ui: U(Z(1/3)*3) does not give 1\n"); exit (1); @@ -217,7 +217,7 @@ main (int argc, char *argv[]) { mpfr_set_prec (y, yprec); mpfr_mul_ui (y, x, 1, GMP_RNDN); - if (mpfr_get_d1 (x) != mpfr_get_d1 (y)) + if (mpfr_cmp(x,y)) { printf ("multiplication by 1.0 fails for xprec=%u, yprec=%u\n", xprec, yprec); |