ruby-changes:6125
From: akr <ko1@a...>
Date: Sun, 29 Jun 2008 00:16:59 +0900 (JST)
Subject: [ruby-changes:6125] Ruby:r17636 (ruby_1_8): * eval.c (rb_obj_respond_to): use RTEST to test the result of
akr 2008-06-29 00:14:30 +0900 (Sun, 29 Jun 2008) New Revision: 17636 Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/eval.c Log: * eval.c (rb_obj_respond_to): use RTEST to test the result of respond_to? method. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=17636&r2=17635&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/eval.c?r1=17636&r2=17635&diff_format=u Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 17635) +++ ruby_1_8/ChangeLog (revision 17636) @@ -1,3 +1,8 @@ +Sun Jun 29 00:13:06 2008 Tanaka Akira <akr@f...> + + * 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@r...> * class.c (clone_method): use rb_copy_node_scope. Index: ruby_1_8/eval.c =================================================================== --- ruby_1_8/eval.c (revision 17635) +++ ruby_1_8/eval.c (revision 17636) @@ -4233,7 +4233,7 @@ 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)); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/