diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-27 00:17:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-27 00:17:48 +0000 |
commit | 072b3778194b26245421bf3322e8975b5039d55e (patch) | |
tree | 487bb3479fa2718c41b94149279f31e859bc3471 /vm_method.c | |
parent | d75a7fc0597b2a7400c94458785233ee88e1b5c0 (diff) | |
download | ruby-072b3778194b26245421bf3322e8975b5039d55e.tar.gz ruby-072b3778194b26245421bf3322e8975b5039d55e.tar.xz ruby-072b3778194b26245421bf3322e8975b5039d55e.zip |
* vm_method.c (rb_method_entry_eq): suppressed a warning.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c index f8648a9e4..c95554db9 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: |