* 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:
parent
c7e829292a
commit
c3cbb209ca
@ -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>
|
Wed Mar 12 14:47:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* eval_intern.h (rb_thread_raised_set): use generic flags.
|
* eval_intern.h (rb_thread_raised_set): use generic flags.
|
||||||
|
2
object.c
2
object.c
@ -2064,7 +2064,7 @@ rb_cstr_to_dbl(const char *p, int badcheck)
|
|||||||
char *e = buf + sizeof(buf) - 1;
|
char *e = buf + sizeof(buf) - 1;
|
||||||
char prev = 0;
|
char prev = 0;
|
||||||
|
|
||||||
while (p < end && n < e) *n++ = *p++;
|
while (p < end && n < e) prev = *n++ = *p++;
|
||||||
while (*p) {
|
while (*p) {
|
||||||
if (*p == '_') {
|
if (*p == '_') {
|
||||||
/* remove underscores between digits */
|
/* remove underscores between digits */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user