summaryrefslogtreecommitdiff
path: root/tests/tget_set_d64.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-06-23 00:23:10 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-06-23 00:23:10 +0000
commita19027fd38b2ab986b0371230b0f3d406a472500 (patch)
tree99dfc25ccc928aa2f49cf8300eb61a782af7637d /tests/tget_set_d64.c
parent35af16e4083964c83c79bb46e0181d02802ca910 (diff)
downloadmpfr-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.c2
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);