diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | eval.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sun Jun 29 00:13:06 2008 Tanaka Akira <akr@fsij.org> + + * eval.c (rb_obj_respond_to): use RTEST to test the result of + respond_to? method. + Sat Jun 28 19:13:41 2008 URABE Shyouhei <shyouhei@ruby-lang.org> * class.c (clone_method): use rb_copy_node_scope. @@ -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)); } } |
