diff options
author | Lisandro Dalcin <dalcinl@gmail.com> | 2023-04-21 00:03:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-21 00:03:19 +0300 |
commit | a75afc03415f1b887434991ac0db2de0e6555ed7 (patch) | |
tree | 5826f3a48cbc13683b3767047a19ee4e30ccf1f1 /Cython | |
parent | f570f8dec0565ef820d888f837645b2ae3b681fa (diff) | |
download | cython-a75afc03415f1b887434991ac0db2de0e6555ed7.tar.gz |
Fix regression in code generation order for cdef classes (GH-5395)
Diffstat (limited to 'Cython')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 29e810a73..cba8effef 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -651,7 +651,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): dfs(type_dict[v]) result.append(u) - for key in type_order: + for key in reversed(type_order): dfs(type_dict[key]) result.reverse() |