summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-24 17:49:34 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-24 17:49:34 +0000
commit072673ee41bf10822d44a88a21818e255ddfedbb (patch)
tree6bcc647423c55e74ac3f257beac14b0fc38d6080 /object.c
parentfd4364d087bea81744aaf635985320014b8e1a78 (diff)
Merge from ruby_1_8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/object.c b/object.c
index d45934b..2777843 100644
--- a/object.c
+++ b/object.c
@@ -2354,6 +2354,7 @@ rb_cstr_to_dbl(p, badcheck)
else {
while (ISSPACE(*p) || *p == '_') p++;
}
+ errno = 0;
d = strtod(p, &end);
if (errno == ERANGE) {
OutOfRange();