summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-12 08:33:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-12 08:33:37 +0000
commitc3cbb209caf8ac434063f0a1cc6370b92da63a58 (patch)
tree1aee9b89e8a64700d4d760b542d0224ec6f7119f /object.c
parentc7e829292abb39da31509db8846f290ae1bdb304 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 7b364499e2..39d6d866fe 100644
--- a/object.c
+++ b/object.c
@@ -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 */