From 327515a95b40b0bcd5e4e435cf0f131a2540990f Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 23 May 2008 23:15:14 +0000 Subject: [PATCH] * transcode.c (rb_str_transcode): argc is 1, and argv is &to. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ transcode.c | 5 +---- version.h | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 330104a589..d0893e37e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat May 24 08:13:34 2008 NARUSE, Yui + + * transcode.c (rb_str_transcode): argc is 1, and argv is &to. + Fri May 23 17:55:11 2008 Akinori MUSHA * array.c (rb_ary_slice_bang): Be consistent with Array#slice() diff --git a/transcode.c b/transcode.c index 60aee66d5d..729baffb9a 100644 --- a/transcode.c +++ b/transcode.c @@ -441,10 +441,7 @@ str_encode(int argc, VALUE *argv, VALUE str) VALUE rb_str_transcode(VALUE str, VALUE to) { - int argc = 1; - VALUE argv = rb_ary_new2(1); - rb_ary_push(argv, to); - return str_encode(argc, &argv, str); + return str_encode(1, &to, str); } void diff --git a/version.h b/version.h index 531904451f..85565bd42f 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2008-05-23" +#define RUBY_RELEASE_DATE "2008-05-24" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20080523 +#define RUBY_RELEASE_CODE 20080524 #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 5 -#define RUBY_RELEASE_DAY 23 +#define RUBY_RELEASE_DAY 24 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[];