* 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
Родитель c7e829292a
Коммит c3cbb209ca
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -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.

Просмотреть файл

@ -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 */