Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix misreimplementation of C3 MRO
  • Loading branch information
sorear committed Oct 23, 2011
1 parent c8e7307 commit 049b617
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/ObjModel.cs
Expand Up @@ -597,10 +597,9 @@ public class DispatchSet {
Kernel.AnyMO);
}

STable[][] lists = new STable[superclasses.Count + 1][];
lists[0] = new STable[superclasses.Count + 1];
lists[0][0] = stable;
superclasses.CopyTo(lists[0], 1);
STable[][] lists = new STable[superclasses.Count + 2][];
lists[0] = new STable[] { stable };
lists[superclasses.Count + 1] = superclasses.ToArray();
for (int i = 0; i < superclasses.Count; i++)
lists[i+1] = superclasses[i].mo.mro;

Expand Down

0 comments on commit 049b617

Please sign in to comment.