diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-12-03 18:47:04 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-12-03 18:47:04 +0900 |
| commit | a0fbc46ccd3e129532b05a9fe4f13f42a3c349b2 (patch) | |
| tree | f3196f462149109c467e6ad6b1bf677d03e48112 /mrbgems/mruby-compiler/core/parse.y | |
| parent | 802e396466142698af401f9700bfa61e67024074 (diff) | |
| download | mruby-a0fbc46ccd3e129532b05a9fe4f13f42a3c349b2.tar.gz mruby-a0fbc46ccd3e129532b05a9fe4f13f42a3c349b2.zip | |
Import locale insensitive strtod() from Ruby1.8; fix #3270
The function was renamed to `mrb_float_read(const char*, char**)`.
Diffstat (limited to 'mrbgems/mruby-compiler/core/parse.y')
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index e81d191d9..19cb88e5b 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -4912,7 +4912,7 @@ parser_yylex(parser_state *p) char *endp; errno = 0; - d = strtod(tok(p), &endp); + d = mrb_float_read(tok(p), &endp); if (d == 0 && endp == tok(p)) { yywarning_s(p, "corrupted float value %s", tok(p)); } |
