diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2006-01-19 14:53:44 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2006-01-19 14:53:44 +0000 |
commit | aeb47f25a2660039249681d8143390c4396adced (patch) | |
tree | 182097eca901fb64674befcbab6ba84346878d4d /tests/tout_str.c | |
parent | 94ecb2d186119966e1332f6ba0c49b9418a4e618 (diff) | |
download | mpfr-aeb47f25a2660039249681d8143390c4396adced.tar.gz |
Replaced -0.0 by a new macro DBL_NEG_ZERO. With MSVC, the negative zero
no longer depends on the non-standard _chgsign function, as
static double double_zero = 0.0;
# define DBL_NEG_ZERO (-double_zero)
has been reported to work.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4005 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tout_str.c')
-rw-r--r-- | tests/tout_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tout_str.c b/tests/tout_str.c index a1a445d90..dd8c64eb8 100644 --- a/tests/tout_str.c +++ b/tests/tout_str.c @@ -160,7 +160,7 @@ main (int argc, char *argv[]) check (-1.37247529013405550000e+15, GMP_RNDN, 7); check (-1.5674376729569697500e+15, GMP_RNDN, 19); check (-5.71262771772792640000e-79, GMP_RNDU, 16); - check (-0.0, GMP_RNDU, 7); + check (DBL_NEG_ZERO, GMP_RNDU, 7); check (-4.5306392613572974756e-308, GMP_RNDN, 8); check (-6.7265890111403371523e-165, GMP_RNDN, 4); check (-1.3242553591261807653e+156, GMP_RNDN, 16); |