summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-04-19 08:21:51 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-04-19 08:21:51 +0900
commit0f31f16015dfa001381fa642a9e62ee2077dc020 (patch)
treefab0efa5faa38451f79c276722d928d01ba47a67 /src
parente79afd4c74a9677610ab95805fd0ffa4507410c7 (diff)
parent09419874c8018830a53db1f5bec3ecadcb26c815 (diff)
downloadmruby-0f31f16015dfa001381fa642a9e62ee2077dc020.tar.gz
mruby-0f31f16015dfa001381fa642a9e62ee2077dc020.zip
Merge pull request #2768 from kou/suppress-write-strings-warnings
Suppress warnings generated by -Wwrite-strings
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);