Skip to content

Commit 8803c60

Browse files
committed
* eval.c (add_activated_refinement): should not include the original
class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 6cb284a commit 8803c60

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
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+
16
Mon 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

eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)