diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-02 04:47:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-02 04:47:39 +0000 |
commit | 6f14520a0606c03514fa2ab99caedacedac16e92 (patch) | |
tree | 98027e91f9b84c8f06a773760f0e304b04d2b3b9 | |
parent | d380745cc34db08ad12b66f11bc0e185df3c180b (diff) |
* math.c (domain_check): simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | math.c | 13 | ||||
-rw-r--r-- | version.h | 8 |
3 files changed, 13 insertions, 12 deletions
@@ -1,3 +1,7 @@ +Wed Sep 2 13:47:30 2009 Nobuyoshi Nakada <[email protected]> + + * math.c (domain_check): simplified. + Sun Aug 30 15:12:22 2009 Nobuyoshi Nakada <[email protected]> * gc.c (gc_sweep): makes new room if object space is full of @@ -29,20 +29,17 @@ domain_check(x, msg) double x; const char *msg; { - while(1) { - if (errno) { - rb_sys_fail(msg); - } - if (isnan(x)) { + if (!isnan(x)) return; + else { + if (!errno) { #if defined(EDOM) errno = EDOM; -#elif defined(ERANGE) +#else errno = ERANGE; #endif - continue; } - break; } + rb_sys_fail(msg); } @@ -1,15 +1,15 @@ #define RUBY_VERSION "1.8.8" -#define RUBY_RELEASE_DATE "2009-08-30" +#define RUBY_RELEASE_DATE "2009-09-02" #define RUBY_VERSION_CODE 188 -#define RUBY_RELEASE_CODE 20090830 +#define RUBY_RELEASE_CODE 20090902 #define RUBY_PATCHLEVEL -1 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 #define RUBY_VERSION_TEENY 8 #define RUBY_RELEASE_YEAR 2009 -#define RUBY_RELEASE_MONTH 8 -#define RUBY_RELEASE_DAY 30 +#define RUBY_RELEASE_MONTH 9 +#define RUBY_RELEASE_DAY 2 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; |