summaryrefslogtreecommitdiff
path: root/tests/tcmp_ld.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2019-02-06 09:10:34 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2019-02-06 09:10:34 +0000
commit7e408afc43bc53101409ebfc94d1f00fe0723f77 (patch)
treee28c48e44a5ac6128b8be9d59cfc2fd1c712f2a9 /tests/tcmp_ld.c
parenta586834d788017fc9d4106dd27c7c9bfb77c5f86 (diff)
downloadmpfr-7e408afc43bc53101409ebfc94d1f00fe0723f77.tar.gz
[tests] Use MPFR_DBL_* macros when necessary.
(merged changeset r13446 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13449 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcmp_ld.c')
-rw-r--r--tests/tcmp_ld.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tcmp_ld.c b/tests/tcmp_ld.c
index 22ae139c3..a33059669 100644
--- a/tests/tcmp_ld.c
+++ b/tests/tcmp_ld.c
@@ -23,6 +23,7 @@ https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
#include <float.h>
#include "mpfr-test.h"
+#include "ieee_floats.h"
int
main (void)
@@ -88,7 +89,7 @@ main (void)
int c;
mpfr_clear_flags ();
- c = mpfr_cmp_ld (x, DBL_NAN);
+ c = mpfr_cmp_ld (x, MPFR_DBL_NAN);
if (c != 0 || __gmpfr_flags != MPFR_FLAGS_ERANGE)
{
printf ("ERROR for NAN (1)\n");