From dfbb24da18e6b6b47b8d43a5f1dd531af7701a64 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 17 Jan 2008 21:51:21 -0800 Subject: [PATCH] Fix C++ fix --- Cython/Compiler/ModuleNode.py | 6 ++---- Cython/Compiler/Version.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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' -- 2.26.2