summaryrefslogtreecommitdiff
path: root/lib/libm/frexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libm/frexp.c')
-rw-r--r--lib/libm/frexp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libm/frexp.c b/lib/libm/frexp.c
index 1148c7e9..4b8629f9 100644
--- a/lib/libm/frexp.c
+++ b/lib/libm/frexp.c
@@ -1,5 +1,5 @@
-#include <math.h>
-#include <stdint.h>
+#include <math.h> // for frexp
+#include <stdint.h> // for uint64_t
double frexp(double x, int *e)
{
@@ -16,7 +16,8 @@ double frexp(double x, int *e)
} else
*e = 0;
return x;
- } else if (ee == 0x7ff) {
+ }
+ if (ee == 0x7ff) {
return x;
}