summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-27 00:17:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-27 00:17:48 +0000
commit6bf6f3d4c4a256a01f365481c71579afc4d0aa17 (patch)
tree487bb3479fa2718c41b94149279f31e859bc3471 /vm_method.c
parente662770dc990a29c0182e8d043b6a5d72cc53f9c (diff)
* vm_method.c (rb_method_entry_eq): suppressed a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index f8648a9e48..c95554db9b 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -809,7 +809,7 @@ rb_method_entry_eq(const rb_method_entry_t *m1, const rb_method_entry_t *m2)
case VM_METHOD_TYPE_IVAR:
return d1->body.attr_id == d2->body.attr_id;
case VM_METHOD_TYPE_BMETHOD:
- return rb_equal(d1->body.proc, d2->body.proc);
+ return RTEST(rb_equal(d1->body.proc, d2->body.proc));
case VM_METHOD_TYPE_ZSUPER:
case VM_METHOD_TYPE_NOTIMPLEMENTED:
case VM_METHOD_TYPE_UNDEF: