File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1+ Mon Jun 29 14:50:08 2015 Shugo Maeda <shugo@ruby-lang.org>
2+
3+ * eval.c (add_activated_refinement): should not include the original
4+ class.
5+
16Mon Jun 29 12:09:10 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
27
38 * README.md: tweak styles. [fix GH-945][ci skip] Patch by @bryndyment
Original file line number Diff line number Diff line change @@ -1274,7 +1274,7 @@ add_activated_refinement(VALUE activated_refinements,
12741274 c = iclass = rb_include_class_new (refinement , superclass );
12751275 RCLASS_REFINED_CLASS (c ) = klass ;
12761276 refinement = RCLASS_SUPER (refinement );
1277- while (refinement ) {
1277+ while (refinement && refinement != klass ) {
12781278 FL_SET (refinement , RMODULE_IS_OVERLAID );
12791279 c = RCLASS_SET_SUPER (c , rb_include_class_new (refinement , RCLASS_SUPER (c )));
12801280 RCLASS_REFINED_CLASS (c ) = klass ;
You can’t perform that action at this time.
0 commit comments