Skip to content

Commit 340f07e

Browse files
committed
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_6@17327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 9a1effa commit 340f07e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Sun Jun 15 23:19:53 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
2+
3+
* object.c (rb_cstr_to_dbl): should clear errno before calling
4+
strtod(3). [ruby-dev:34834]
5+
16
Sun Jun 15 23:18:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
27

38
* marshal.c (marshal_load): should initialize arg.data used for

object.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,6 +2281,7 @@ rb_cstr_to_dbl(p, badcheck)
22812281
else {
22822282
while (ISSPACE(*p) || *p == '_') p++;
22832283
}
2284+
errno = 0;
22842285
d = strtod(p, &end);
22852286
if (errno == ERANGE) {
22862287
OutOfRange();

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define RUBY_RELEASE_DATE "2008-06-15"
33
#define RUBY_VERSION_CODE 186
44
#define RUBY_RELEASE_CODE 20080615
5-
#define RUBY_PATCHLEVEL 215
5+
#define RUBY_PATCHLEVEL 216
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

0 commit comments

Comments
 (0)