diff options
| author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-15 14:27:06 +0000 |
|---|---|---|
| committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-15 14:27:06 +0000 |
| commit | 08c91ea9c9d2c7002d04716dbe4bbdae3e13d84d (patch) | |
| tree | 7a68faf196efbef9a79ae71b44a5f54b0e7b786b | |
| parent | 2fdf1fe6e908970db636f3f257764bcde1118f33 (diff) | |
| download | ruby-08c91ea9c9d2c7002d04716dbe4bbdae3e13d84d.tar.gz ruby-08c91ea9c9d2c7002d04716dbe4bbdae3e13d84d.tar.xz ruby-08c91ea9c9d2c7002d04716dbe4bbdae3e13d84d.zip | |
merge revision(s) 16641:
* numeric.c (flo_divmod): Revert the behavior change; do not
suppress an exception when div is NaN or Inf. [ruby-dev:34857]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | numeric.c | 3 | ||||
| -rw-r--r-- | version.h | 2 |
3 files changed, 6 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Sun Jun 15 23:26:50 2008 Akinori MUSHA <knu@iDaemons.org> + + * numeric.c (flo_divmod): Revert the behavior change; do not + suppress an exception when div is NaN or Inf. [ruby-dev:34857] + Sun Jun 15 23:24:32 2008 NAKAMURA Usaku <usa@ruby-lang.org> * file.c (BUFCHECK): wrong condition. [ruby-core:16921] @@ -760,9 +760,6 @@ flo_divmod(x, y) val = round(div); a = LONG2FIX(val); } - else if (isnan(div) || isinf(div)) { - a = rb_float_new(div); - } else { a = rb_dbl2big(div); } @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-06-15" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20080615 -#define RUBY_PATCHLEVEL 218 +#define RUBY_PATCHLEVEL 219 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |
