summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-29 12:39:29 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-29 12:39:29 +0000
commit9ab65a1a75abbb38f421052a3c4dcb763bf039fd (patch)
treede806b8d86c735afca69a57c8b347d9c07253759
parentef762c6f5da74a6f642cd4ffba372a6336e7434d (diff)
downloadruby-9ab65a1a75abbb38f421052a3c4dcb763bf039fd.tar.gz
ruby-9ab65a1a75abbb38f421052a3c4dcb763bf039fd.tar.xz
ruby-9ab65a1a75abbb38f421052a3c4dcb763bf039fd.zip
merge revision(s) 17636:
* eval.c (rb_obj_respond_to): use RTEST to test the result of respond_to? method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--eval.c2
-rw-r--r--version.h2
3 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2a32d764e..4b74e1fb3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Jun 29 21:38:52 2008 Tanaka Akira <akr@fsij.org>
+
+ * eval.c (rb_obj_respond_to): use RTEST to test the result of
+ respond_to? method.
+
Sun Jun 29 20:40:57 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
* array.c (rb_ary_fill): (compatibility) do not raise
diff --git a/eval.c b/eval.c
index 54d15af8f..977045087 100644
--- a/eval.c
+++ b/eval.c
@@ -4231,7 +4231,7 @@ rb_obj_respond_to(obj, id, priv)
int n = 0;
args[n++] = ID2SYM(id);
if (priv) args[n++] = Qtrue;
- return rb_funcall2(obj, respond_to, n, args);
+ return RTEST(rb_funcall2(obj, respond_to, n, args));
}
}
diff --git a/version.h b/version.h
index 9fdfda768..5879c5a5b 100644
--- a/version.h
+++ b/version.h
@@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2008-06-29"
#define RUBY_VERSION_CODE 186
#define RUBY_RELEASE_CODE 20080629
-#define RUBY_PATCHLEVEL 254
+#define RUBY_PATCHLEVEL 255
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8