diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-15 08:15:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-15 08:15:32 +0000 |
commit | 71388fa4e159f614b52371ef1f35e3d1e5789c70 (patch) | |
tree | e11cbc65cf3da0f728bb02c481fb620056ccd192 /vm_insnhelper.h | |
parent | e5052b18f0553b56586dfd67dff05774ba07f855 (diff) | |
download | ruby-71388fa4e159f614b52371ef1f35e3d1e5789c70.tar.gz |
object.c: make String#to_f consistent with literal
* object.c (rb_cstr_to_dbl): stop at successive underscores, as
well as Float literals. [ruby-core:80098] [Bug #13105]
* `_` should be within digits
* only one `_` allowed between digits
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.h')
0 files changed, 0 insertions, 0 deletions