From 7bcb11021d19d2bedd053a4f7a53c98c7a96234c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 30 Apr 2009 20:11:08 +0200 Subject: [PATCH] missing type cast --- Cython/Compiler/Nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index a43e5168..6da5e577 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1069,7 +1069,7 @@ class FuncDefNode(StatNode, BlockNode): outer_scope_cname, env.scope_class.type.declaration_code(''), Naming.self_cname)) - code.put_incref(outer_scope_cname, py_object_type) + code.put_incref(outer_scope_cname, env.scope_class.type) code.put_giveref(outer_scope_cname) # ----- Fetch arguments self.generate_argument_parsing_code(env, code) -- 2.26.2