ruby-changes:5821
From: shyouhei <ko1@a...>
Date: Sun, 15 Jun 2008 23:20:15 +0900 (JST)
Subject: [ruby-changes:5821] Ruby:r17327 (ruby_1_8_6): merge revision(s) 16570:
shyouhei 2008-06-15 23:20:00 +0900 (Sun, 15 Jun 2008) New Revision: 17327 Modified files: branches/ruby_1_8_6/ChangeLog branches/ruby_1_8_6/object.c branches/ruby_1_8_6/version.h Log: merge revision(s) 16570: * object.c (rb_cstr_to_dbl): should clear errno before calling strtod(3). [ruby-dev:34834] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/ChangeLog?r1=17327&r2=17326&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/version.h?r1=17327&r2=17326&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/object.c?r1=17327&r2=17326&diff_format=u Index: ruby_1_8_6/ChangeLog =================================================================== --- ruby_1_8_6/ChangeLog (revision 17326) +++ ruby_1_8_6/ChangeLog (revision 17327) @@ -1,3 +1,8 @@ +Sun Jun 15 23:19:53 2008 Yukihiro Matsumoto <matz@r...> + + * object.c (rb_cstr_to_dbl): should clear errno before calling + strtod(3). [ruby-dev:34834] + Sun Jun 15 23:18:15 2008 Yukihiro Matsumoto <matz@r...> * marshal.c (marshal_load): should initialize arg.data used for Index: ruby_1_8_6/version.h =================================================================== --- ruby_1_8_6/version.h (revision 17326) +++ ruby_1_8_6/version.h (revision 17327) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-06-15" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20080615 -#define RUBY_PATCHLEVEL 215 +#define RUBY_PATCHLEVEL 216 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 Index: ruby_1_8_6/object.c =================================================================== --- ruby_1_8_6/object.c (revision 17326) +++ ruby_1_8_6/object.c (revision 17327) @@ -2281,6 +2281,7 @@ else { while (ISSPACE(*p) || *p == '_') p++; } + errno = 0; d = strtod(p, &end); if (errno == ERANGE) { OutOfRange(); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/