diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-01-14 19:13:09 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-01-14 19:13:09 +0900 |
| commit | 348526e1add796cd8b7b6dda2889ef5627e398c5 (patch) | |
| tree | 19d9c28bbe8e925b1b27986fbc376693dba5cd54 /src/state.c | |
| parent | c1b92f88a210d018b653dc9865fe5375cf118a61 (diff) | |
| parent | 0e04c46261eb9d5193f21d423f5d00f1910a460a (diff) | |
| download | mruby-348526e1add796cd8b7b6dda2889ef5627e398c5.tar.gz mruby-348526e1add796cd8b7b6dda2889ef5627e398c5.zip | |
Merge pull request #4225 from shuujii/improve-compatibility-to-cruby-for-float-to_s
Improve compatibility to CRuby for `Float#to_s`
Diffstat (limited to 'src/state.c')
| -rw-r--r-- | src/state.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index 5583a77e5..e678b37f3 100644 --- a/src/state.c +++ b/src/state.c @@ -41,6 +41,10 @@ mrb_open_core(mrb_allocf f, void *ud) mrb_init_core(mrb); +#if !defined(MRB_DISABLE_STDIO) && defined(_MSC_VER) && _MSC_VER < 1900 + _set_output_format(_TWO_DIGIT_EXPONENT); +#endif + return mrb; } |
