Cython disregards the c-name for "cdef public" class members
authorbluecreature@gmail.com <none@none>
Wed, 13 Feb 2008 04:36:57 +0000 (20:36 -0800)
committerbluecreature@gmail.com <none@none>
Wed, 13 Feb 2008 04:36:57 +0000 (20:36 -0800)
Cython/Compiler/ModuleNode.py

index 5e529b592a105535f8df34f56eb44475f42b27a9..0c0469b64279188c2f803ac6130bfba568d92c29 100644 (file)
@@ -1207,7 +1207,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
                 code.putln('{"%s", %s, %s, %s, 0},' % (
                     entry.name,
                     type_code,
-                    "offsetof(%s, %s)" % (objstruct, entry.name),
+                    "offsetof(%s, %s)" % (objstruct, entry.cname),
                     flags))
             code.putln(
                     "{0, 0, 0, 0, 0}")