ruby-changes:26259
From: kazu <ko1@a...>
Date: Tue, 11 Dec 2012 18:31:36 +0900 (JST)
Subject: [ruby-changes:26259] kazu:r38316 (trunk): fix typos for r38298
kazu 2012-12-11 18:31:26 +0900 (Tue, 11 Dec 2012) New Revision: 38316 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38316 Log: fix typos for r38298 Modified files: trunk/ChangeLog trunk/vm_insnhelper.c Index: ChangeLog =================================================================== --- ChangeLog (revision 38315) +++ ChangeLog (revision 38316) @@ -68,7 +68,7 @@ superclass <M>'. * vm_insnhelper.c (vm_search_super_method): do not raise a - NotImplementError if current_defind_class is a module included + NotImplementError if current_defined_class is a module included into a refinement. Because of the change of vm_search_normal_superclass(), the receiver might not be an instance of the module('s iclass). Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 38315) +++ vm_insnhelper.c (revision 38316) @@ -1930,21 +1930,21 @@ 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"); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/