From b9fd3e4e8504572e6bcd71f51c0432809f8f25cc Mon Sep 17 00:00:00 2001 From: mame Date: Thu, 20 Mar 2008 16:41:51 +0000 Subject: [PATCH] * complex.c (nucomp_sub, nucomp_expt): call corresponding functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ complex.c | 4 ++-- version.h | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 76f21ab784..4281df42bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Mar 21 01:40:27 2008 Yusuke Endoh + + * complex.c (nucomp_sub, nucomp_expt): call corresponding functions. + Fri Mar 21 01:21:43 2008 Yusuke Endoh * missing/tgamma.c: include config.h before math.h. [ruby-dev:34075] diff --git a/complex.c b/complex.c index 6953428418..cdbd214d8a 100644 --- a/complex.c +++ b/complex.c @@ -753,7 +753,7 @@ nucomp_sub(VALUE self, VALUE other) default: { VALUE a = f_coerce(other, self); - return f_add(RARRAY_PTR(a)[0], RARRAY_PTR(a)[1]); + return f_sub(RARRAY_PTR(a)[0], RARRAY_PTR(a)[1]); } } } @@ -909,7 +909,7 @@ nucomp_expt(VALUE self, VALUE other) default: { VALUE a = f_coerce(other, self); - return f_div(RARRAY_PTR(a)[0], RARRAY_PTR(a)[1]); + return f_expt(RARRAY_PTR(a)[0], RARRAY_PTR(a)[1]); } } } diff --git a/version.h b/version.h index ec659f21e3..041cfa3128 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2008-03-20" +#define RUBY_RELEASE_DATE "2008-03-21" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20080320 +#define RUBY_RELEASE_CODE 20080321 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2008 #define RUBY_RELEASE_MONTH 3 -#define RUBY_RELEASE_DAY 20 +#define RUBY_RELEASE_DAY 21 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[];