summaryrefslogtreecommitdiff
path: root/tests/tlog10.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-01-14 12:42:22 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-01-14 12:42:22 +0000
commit0a40b14f2ae6f51268df552f999845f23de4a321 (patch)
tree15f35161f8ad2eee60846eb7af6d23be3e4df5fd /tests/tlog10.c
parent21249c6b35c1ef09485172cb22598a1c78a2d151 (diff)
downloadmpfr-0a40b14f2ae6f51268df552f999845f23de4a321.tar.gz
Continue to port tests so that they don't use double.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2621 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tlog10.c')
-rw-r--r--tests/tlog10.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tlog10.c b/tests/tlog10.c
index 63f10bc17..792d4466b 100644
--- a/tests/tlog10.c
+++ b/tests/tlog10.c
@@ -1,6 +1,6 @@
/* Test file for mpfr_log10.
-Copyright 2001, 2002, 2003 Free Software Foundation.
+Copyright 2001, 2002, 2003, 2004 Free Software Foundation.
Adapted from tsinh.c.
This file is part of the MPFR Library.
@@ -47,7 +47,7 @@ main (int argc, char *argv[])
{
mpfr_mul_ui (x, x, 10, GMP_RNDN); /* x = 10^n */
mpfr_log10 (y, x, GMP_RNDN);
- if (mpfr_get_d1 (y) != (double) n)
+ if (mpfr_cmp_ui (y, n) )
{
printf ("log10(10^n) <> n for n=%u\n", n);
exit (1);