ruby-changes:12109
From: yugui <ko1@a...>
Date: Sun, 21 Jun 2009 18:14:19 +0900 (JST)
Subject: [ruby-changes:12109] Ruby:r23780 (ruby_1_9_1): merges r23658 from trunk into ruby_1_9_1.
yugui 2009-06-21 18:14:00 +0900 (Sun, 21 Jun 2009) New Revision: 23780 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23780 Log: merges r23658 from trunk into ruby_1_9_1. -- * lib/cmath.rb (log10): raised exception when the given number is a negative real. Modified files: branches/ruby_1_9_1/ChangeLog branches/ruby_1_9_1/lib/cmath.rb branches/ruby_1_9_1/version.h Index: ruby_1_9_1/ChangeLog =================================================================== --- ruby_1_9_1/ChangeLog (revision 23779) +++ ruby_1_9_1/ChangeLog (revision 23780) @@ -1,3 +1,8 @@ +Tue Jun 9 22:38:09 2009 Tadayoshi Funaba <tadf@d...> + + * lib/cmath.rb (log10): raised exception when the given number is + a negative real. + Tue Jun 9 15:13:14 2009 Nobuyoshi Nakada <nobu@r...> * dir.c (dir_s_glob): fixed rdoc. a patch from Joseph Pecoraro a Index: ruby_1_9_1/lib/cmath.rb =================================================================== --- ruby_1_9_1/lib/cmath.rb (revision 23779) +++ ruby_1_9_1/lib/cmath.rb (revision 23780) @@ -48,7 +48,7 @@ end def log10(z) - if z.real? + if z.real? and z >= 0 log10!(z) else log(z) / log!(10) Index: ruby_1_9_1/version.h =================================================================== --- ruby_1_9_1/version.h (revision 23779) +++ ruby_1_9_1/version.h (revision 23780) @@ -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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/