diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-15 14:19:35 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-15 14:19:35 +0000 |
commit | d36cceded90ea5483ffdd68aaf5461dcfbd53c86 (patch) | |
tree | 5e467a1838c96d7daaa8a19caff0f24476009f99 /object.c | |
parent | 0b5177fcdcfc1a4e463eb5bd258b9c32ba35eaa9 (diff) |
merge revision(s) 16570:
* object.c (rb_cstr_to_dbl): should clear errno before calling
strtod(3). [ruby-dev:34834]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@17325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2203,6 +2203,7 @@ rb_cstr_to_dbl(p, badcheck) else { while (ISSPACE(*p) || *p == '_') p++; } + errno = 0; d = strtod(p, &end); if (errno == ERANGE) { OutOfRange(); |