summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fmt_fp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmt_fp.c b/src/fmt_fp.c
index a94503e63..9b29093a8 100644
--- a/src/fmt_fp.c
+++ b/src/fmt_fp.c
@@ -121,7 +121,7 @@ fmt_fp(struct fmt_args *f, long double y, int w, int p, int fl, int t)
} else prefix++, pl=0;
if (!isfinite(y)) {
- char *ss = (t&32)?"inf":"INF";
+ const char *ss = (t&32)?"inf":"INF";
if (y!=y) ss=(t&32)?"nan":"NAN";
pad(f, ' ', w, 3+pl, fl&~ZERO_PAD);
out(f, prefix, pl);