diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-12 08:33:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-12 08:33:37 +0000 |
commit | c3cbb209caf8ac434063f0a1cc6370b92da63a58 (patch) | |
tree | 1aee9b89e8a64700d4d760b542d0224ec6f7119f /object.c | |
parent | c7e829292abb39da31509db8846f290ae1bdb304 (diff) |
* 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
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |