math: fix expm1f overflow threshold
[musl] / src / math / logbf.c
index 950d356..a0a0b5e 100644 (file)
@@ -1,10 +1,10 @@
-#include "libm.h"
+#include <math.h>
 
 float logbf(float x)
 {
        if (!isfinite(x))
                return x * x;
        if (x == 0)
-               return -1/(x+0);
+               return -1/(x*x);
        return ilogbf(x);
 }