Commit 5750dae0 authored by Stefan Behnel's avatar Stefan Behnel

add assertion, just in case

parent 8c7c68b3
......@@ -461,7 +461,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
key_func = operator.attrgetter('objstruct_cname')
entry_dict = {}
for entry in env.c_class_entries:
entry_dict[key_func(entry.type)] = entry
key = key_func(entry.type)
assert key not in entry_dict
entry_dict[key] = entry
env.c_class_entries[:] = self.sort_types_by_inheritance(
entry_dict, key_func)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment