X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-frexpl.c;h=f98bf513139c348d1f8f98eac58b4d97c16979e4;hb=1b71c50d5a227649f1bcc11cf79e2be7ef68fff8;hp=08042be4a17415b5117cb928f39227b57c59a274;hpb=33b602c44df79204ad59f2a3f160e5aae374a971;p=gnulib.git diff --git a/tests/test-frexpl.c b/tests/test-frexpl.c index 08042be4a..f98bf5131 100644 --- a/tests/test-frexpl.c +++ b/tests/test-frexpl.c @@ -57,6 +57,10 @@ # define MIN_NORMAL_EXP LDBL_MIN_EXP #endif +/* On HP-UX 10.20, negating 0.0L does not yield -0.0L. + So we use minus_zero instead. */ +long double minus_zero = -LDBL_MIN * LDBL_MIN; + static long double my_ldexp (long double x, int d) { @@ -113,7 +117,7 @@ main () { /* Negative zero. */ int exp = -9999; long double mantissa; - x = -0.0L; + x = minus_zero; mantissa = frexpl (x, &exp); ASSERT (exp == 0); ASSERT (mantissa == x);