diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-28 14:17:28 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-28 14:17:28 +0000 |
commit | ac835db6c8d5ed105ab3783c48a5b577fa0e05cf (patch) | |
tree | 89dded96563521e4ba50035f99b4e17e15102127 /insnhelper.ci | |
parent | fbebfdf23db958e3bb06dc0d4ccadca48d748dff (diff) | |
download | ruby-ac835db6c8d5ed105ab3783c48a5b577fa0e05cf.tar.gz |
* insnhelper.ci (vm_call_method): allow send! to call protected
methods as well. [ruby-core:12280]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insnhelper.ci')
-rw-r--r-- | insnhelper.ci | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/insnhelper.ci b/insnhelper.ci index afb0bd0e76..d067903ad8 100644 --- a/insnhelper.ci +++ b/insnhelper.ci @@ -537,7 +537,8 @@ vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp, } val = vm_method_missing(th, id, recv, num, blockptr, stat); } - else if ((mn->nd_noex & NOEX_MASK) & NOEX_PROTECTED) { + else if (((mn->nd_noex & NOEX_MASK) & NOEX_PROTECTED) && + !(flag & VM_CALL_SEND_BANG_BIT)) { VALUE defined_class = mn->nd_clss; if (TYPE(defined_class) == T_ICLASS) { |