diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-04-19 08:21:51 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-04-19 08:21:51 +0900 |
| commit | 0f31f16015dfa001381fa642a9e62ee2077dc020 (patch) | |
| tree | fab0efa5faa38451f79c276722d928d01ba47a67 /src | |
| parent | e79afd4c74a9677610ab95805fd0ffa4507410c7 (diff) | |
| parent | 09419874c8018830a53db1f5bec3ecadcb26c815 (diff) | |
| download | mruby-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.c | 2 |
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); |
