diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-11 09:31:26 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-11 09:31:26 +0000 |
commit | 16af9a107e8307567e2e1154328e9d24d9886803 (patch) | |
tree | 2378020e611fb6ae0a288215d3115925b25b2b48 /vm_insnhelper.c | |
parent | 52d4a465a8cafe5b2a09647ff117ad4d425840ce (diff) |
fix typos for r38298
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 1470844309..dacde9e55e 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1930,21 +1930,21 @@ vm_search_superclass(rb_control_frame_t *reg_cfp, rb_iseq_t *iseq, VALUE sigval, static void vm_search_super_method(rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_call_info_t *ci) { - VALUE current_defind_class; + VALUE current_defined_class; rb_iseq_t *iseq = GET_ISEQ(); VALUE sigval = TOPN(ci->orig_argc); - current_defind_class = GET_CFP()->klass; - if (NIL_P(current_defind_class)) { + current_defined_class = GET_CFP()->klass; + if (NIL_P(current_defined_class)) { vm_super_outside(); } - if (!NIL_P(RCLASS_REFINED_CLASS(current_defind_class))) { - current_defind_class = RCLASS_REFINED_CLASS(current_defind_class); + if (!NIL_P(RCLASS_REFINED_CLASS(current_defined_class))) { + current_defined_class = RCLASS_REFINED_CLASS(current_defined_class); } - if (!FL_TEST(current_defind_class, RMODULE_INCLUDED_INTO_REFINEMENT) && - !rb_obj_is_kind_of(ci->recv, current_defind_class)) { + if (!FL_TEST(current_defined_class, RMODULE_INCLUDED_INTO_REFINEMENT) && + !rb_obj_is_kind_of(ci->recv, current_defined_class)) { rb_raise(rb_eNotImpError, "super from singleton method that is defined to multiple classes is not supported; this will be fixed in 2.0.0 or later"); } |