X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fmath%2Frintl.c;h=b13cfeb30bbf94b8f3742863f6366b6f99b7a680;hp=1cc35df50cdb1bb5f126bbb9c7c1c6f211c6e289;hb=HEAD;hpb=b69f695acedd4ce2798ef9ea28d834ceccc789bd diff --git a/src/math/rintl.c b/src/math/rintl.c index 1cc35df5..b13cfeb3 100644 --- a/src/math/rintl.c +++ b/src/math/rintl.c @@ -42,8 +42,6 @@ shift[2] = { 0x1.0p63, -0x1.0p63 #elif LDBL_MANT_DIG == 113 0x1.0p112, -0x1.0p112 -#else -#error "Unsupported long double format" #endif }; static const float zero[2] = { 0.0, -0.0 }; @@ -79,7 +77,7 @@ long double rintl(long double x) * If the result is +-0, then it must have the same sign as x, but * the above calculation doesn't always give this. Fix up the sign. */ - if (ex < BIAS && x == 0.0L) + if (ex < BIAS && x == 0.0) return zero[sign]; return x;