mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* util.c (ruby_strtod): ruby_strtod don't allow a trailing
decimal point like "7.". [ruby-dev:34835] [ruby-dev:35009] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
397ee1a315
commit
eb362405e1
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jun 10 17:01:58 2008 wanabe <s.wanabe@gmail.com>
|
||||
|
||||
* util.c (ruby_strtod): ruby_strtod don't allow a trailing
|
||||
decimal point like "7.". [ruby-dev:34835] [ruby-dev:35009]
|
||||
|
||||
Tue Jun 10 13:40:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_thread_select), string.c (str_gsub): suppress warnings.
|
||||
|
|
2
util.c
2
util.c
|
@ -2171,6 +2171,8 @@ break2:
|
|||
}
|
||||
#endif
|
||||
if (c == '.') {
|
||||
if (!ISDIGIT(s[1]))
|
||||
goto dig_done;
|
||||
c = *++s;
|
||||
if (!nd) {
|
||||
for (; c == '0'; c = *++s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue