summaryrefslogtreecommitdiff
path: root/ext/json/ext/generator/generator.c
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2020-12-21 15:50:04 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-12-22 13:57:37 +0900
commitae5ef25af52b2b92d7ecf40feeca09c324c0d777 (patch)
treeafcac9aab47c6528021f1424cf6ad4e300eaad29 /ext/json/ext/generator/generator.c
parent4d6482bb16e1214927c962c363bb765a4954fdc4 (diff)
downloadjson-ae5ef25af52b2b92d7ecf40feeca09c324c0d777.tar.gz
[json] JSON_parse_float: Fix how to convert number
Stop BigDecimal-specific optimization. Instead, it tries the conversion methods in the following order: 1. `try_convert`, 2. `new`, and 3. class-named function, e.g. `Foo::Bar.Baz` function for `Foo::Bar::Baz` class If all the above candidates are unavailable, it fallbacks to Float.
Diffstat (limited to 'ext/json/ext/generator/generator.c')
0 files changed, 0 insertions, 0 deletions