missing type cast
authorStefan Behnel <scoder@users.berlios.de>
Thu, 30 Apr 2009 18:11:08 +0000 (20:11 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 30 Apr 2009 18:11:08 +0000 (20:11 +0200)
Cython/Compiler/Nodes.py

index a43e5168cb4d3ef86c49163cb30cd1770bbc79a3..6da5e5778c4a30ab059c0136e70a39baa9083cb1 100644 (file)
@@ -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)