1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* object.c (rb_cstr_to_dbl): fix for a mere underscore.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-03-12 08:33:37 +00:00
parent c7e829292a
commit c3cbb209ca
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Wed Mar 12 17:33:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* object.c (rb_cstr_to_dbl): fix for a mere underscore.
Wed Mar 12 14:47:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval_intern.h (rb_thread_raised_set): use generic flags.

View file

@ -2064,7 +2064,7 @@ rb_cstr_to_dbl(const char *p, int badcheck)
char *e = buf + sizeof(buf) - 1;
char prev = 0;
while (p < end && n < e) *n++ = *p++;
while (p < end && n < e) prev = *n++ = *p++;
while (*p) {
if (*p == '_') {
/* remove underscores between digits */