From 0cd6752133410875b42db560fb8d04a2d42ca2cf Mon Sep 17 00:00:00 2001 From: "bluecreature@gmail.com" Date: Tue, 12 Feb 2008 20:36:57 -0800 Subject: [PATCH] Cython disregards the c-name for "cdef public" class members --- Cython/Compiler/ModuleNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 5e529b59..0c0469b6 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -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}") -- 2.26.2