diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 12:41:36 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 12:41:36 +0000 |
commit | 313a909418fa6694f865e1f6720bdfb567a67f12 (patch) | |
tree | 9fb0be16ce264f403a9296ab98c2ff6279ae757b | |
parent | 09cb662a8ab70b7a46310f50d295b0af4a526e5d (diff) |
merge revision(s) 17636:
* eval.c (rb_obj_respond_to): use RTEST to test the result of
respond_to? method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@17717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Sun Jun 29 21:39:54 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 21:20:17 2008 URABE Shyouhei <shyouhei@ruby-lang.org> * array.c (rb_ary_fill): (compatibility) do not raise @@ -4233,7 +4233,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)); } } @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-06-29" #define RUBY_VERSION_CODE 187 #define RUBY_RELEASE_CODE 20080629 -#define RUBY_PATCHLEVEL 37 +#define RUBY_PATCHLEVEL 38 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |