summaryrefslogtreecommitdiff
path: root/compar.c
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2020-12-21 15:50:04 +0900
committerKenta Murata <mrkn@mrkn.jp>2020-12-21 22:10:43 +0900
commit4c2e7f26bda8df087a66e546744de0d0d467ea7c (patch)
treeac354bc84a0fb4c53bf3b4400739f524c5cbd93a /compar.c
parent596da98b3ff28ff48b10aed0bbe75287862eacbb (diff)
downloadruby-4c2e7f26bda8df087a66e546744de0d0d467ea7c.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 'compar.c')
0 files changed, 0 insertions, 0 deletions