From: Robert Bradshaw Date: Fri, 18 Jan 2008 05:51:21 +0000 (-0800) Subject: Fix C++ fix X-Git-Tag: 0.9.6.14~29^2~63 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dfbb24da18e6b6b47b8d43a5f1dd531af7701a64;p=cython.git Fix C++ fix --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 207b0215..b2420661 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -797,10 +797,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln("}") for entry in py_attrs: name = "p->%s" % entry.cname - if entry.type.is_extension_type: - name = "((PyObject*)%s)" % name - code.putln("tmp = %s;" % name) - code.put_init_to_py_none(name, PyrexTypes.py_object_type) + code.putln("tmp = %s;" % code.as_pyobject(name, entry.type)) + code.put_init_to_py_none(name, entry.type) code.putln("Py_XDECREF(tmp);") code.putln( "return 0;") diff --git a/Cython/Compiler/Version.py b/Cython/Compiler/Version.py index 929cd08c..2b6abfe1 100644 --- a/Cython/Compiler/Version.py +++ b/Cython/Compiler/Version.py @@ -1 +1 @@ -version = '0.9.6.11' +version = '0.9.6.11b'