aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/builtin.c b/builtin.c
index 62cc2185..867a07f9 100644
--- a/builtin.c
+++ b/builtin.c
@@ -29,7 +29,6 @@
#if defined(HAVE_FCNTL_H)
#include <fcntl.h>
#endif
-#include <math.h>
#include "random.h"
#include "floatmagic.h"
@@ -4053,7 +4052,7 @@ NODE *
do_typeof(int nargs)
{
NODE *arg;
- char *res = NULL;
+ const char *res = NULL;
bool deref = true;
NODE *dbg;
@@ -4265,6 +4264,7 @@ char *
format_nan_inf(NODE *n, char format)
{
static char buf[100];
+ double val = n->numbr;
#ifdef HAVE_MPFR
if (is_mpg_integer(n))
@@ -4284,7 +4284,6 @@ format_nan_inf(NODE *n, char format)
/* else
fallthrough */
#endif
- double val = n->numbr;
if (isnan(val)) {
strcpy(buf, signbit(val) != 0 ? "-nan" : "+nan");