* vm_method.c (rb_mod_method_defined): should return true or false.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-25 02:56:52 +00:00
parent bc7123e434
commit 2c549ad5d3
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
Fri Sep 25 11:51:34 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> Fri Sep 25 11:56:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_method.c (rb_mod_method_defined): should return true or false. * vm_method.c (rb_mod_method_defined): should return true or false.

View File

@ -672,9 +672,9 @@ static VALUE
rb_mod_method_defined(VALUE mod, VALUE mid) rb_mod_method_defined(VALUE mod, VALUE mid)
{ {
if (!rb_method_boundp(mod, rb_to_id(mid), 1)) { if (!rb_method_boundp(mod, rb_to_id(mid), 1)) {
return FALSE; return Qfalse;
} }
return TRUE; return Qtrue;
} }