From: Stefan Behnel Date: Thu, 30 Apr 2009 18:11:08 +0000 (+0200) Subject: missing type cast X-Git-Tag: 0.13.beta0~2^2~140 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7bcb11021d19d2bedd053a4f7a53c98c7a96234c;p=cython.git missing type cast --- 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)