rework langinfo code for ABI compat and for use by time code
[musl] / src / math / rintl.c
index 1cc35df..b13cfeb 100644 (file)
@@ -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;