diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-21 09:14:00 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-21 09:14:00 +0000 |
| commit | db54a65ffc92344b8aee30f4a59d3da37bfccd22 (patch) | |
| tree | d895f04bbf310c39bf3c334481f1d1197c9e2084 | |
| parent | d22db6cc4e07855a306e9087ef2ddf6dfaa26e35 (diff) | |
merges r23658 from trunk into ruby_1_9_1.
--
* lib/cmath.rb (log10): raised exception when the given number is
a negative real.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/cmath.rb | 2 | ||||
| -rw-r--r-- | version.h | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Tue Jun 9 22:38:09 2009 Tadayoshi Funaba <tadf@dotrb.org> + + * lib/cmath.rb (log10): raised exception when the given number is + a negative real. + Tue Jun 9 15:13:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * dir.c (dir_s_glob): fixed rdoc. a patch from Joseph Pecoraro a diff --git a/lib/cmath.rb b/lib/cmath.rb index 95a30c336b..1b0c65c995 100644 --- a/lib/cmath.rb +++ b/lib/cmath.rb @@ -48,7 +48,7 @@ module CMath end def log10(z) - if z.real? + if z.real? and z >= 0 log10!(z) else log(z) / log!(10) @@ -1,6 +1,6 @@ #define RUBY_VERSION "1.9.1" #define RUBY_RELEASE_DATE "2009-05-22" -#define RUBY_PATCHLEVEL 170 +#define RUBY_PATCHLEVEL 171 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 |
