diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-06-23 00:23:10 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-06-23 00:23:10 +0000 |
commit | a19027fd38b2ab986b0371230b0f3d406a472500 (patch) | |
tree | 99dfc25ccc928aa2f49cf8300eb61a782af7637d /tests/tget_set_d64.c | |
parent | 35af16e4083964c83c79bb46e0181d02802ca910 (diff) | |
download | mpfr-a19027fd38b2ab986b0371230b0f3d406a472500.tar.gz |
[tests/tget_set_d64.c] Improved a test.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12852 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tget_set_d64.c')
-rw-r--r-- | tests/tget_set_d64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tget_set_d64.c b/tests/tget_set_d64.c index 35ab6e45e..4755e65c2 100644 --- a/tests/tget_set_d64.c +++ b/tests/tget_set_d64.c @@ -301,7 +301,7 @@ check_random (void) mpfr_mul_2ui (x, x, -1271 - mpfr_get_exp (x), MPFR_RNDN); d = mpfr_get_decimal64 (x, MPFR_RNDN); mpfr_set_decimal64 (y, d, MPFR_RNDN); - if (mpfr_cmp (x, y) != 0) + if (! mpfr_equal_p (x, y)) { printf ("Error:\n"); printf ("x="); mpfr_dump (x); |