diff options
author | nagachika <[email protected]> | 2024-11-30 14:29:18 +0900 |
---|---|---|
committer | nagachika <[email protected]> | 2024-11-30 14:29:18 +0900 |
commit | bb065f08441aab8f97b45bd3f1600202547c9532 (patch) | |
tree | b3245ce5d4c0607a97105490c9ed4e36434bb5cb /class.c | |
parent | 1fc0895971812d5287b23d8cbb00529e425041c0 (diff) |
merge revision(s) 3b7892b6e4d1a1a5d6019987f9b46ed443dd104f: [Backport #20871]
Fix a bug in rb_include_module that stops nested inclusion into module subclasses
This bug was present since the code was originally added by me
in 3556a834a2847e52162d1d3302d4c64390df1694.
Fixes [Bug #20871]
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1145,8 +1145,8 @@ rb_include_module(VALUE klass, VALUE module) iclass = iclass->next; } - int do_include = 1; while (iclass) { + int do_include = 1; VALUE check_class = iclass->klass; /* During lazy sweeping, iclass->klass could be a dead object that * has not yet been swept. */ |