From: Robert Bradshaw Date: Sun, 19 Aug 2007 10:56:31 +0000 (-0700) Subject: remove pointer warning for generic arguments X-Git-Tag: 0.9.6.14~29^2~129^2~17^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4eba71dcb73bb67bcab401cc6f7371a4ecc081e2;p=cython.git remove pointer warning for generic arguments --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index f3eeeeb0..80b0845e 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -699,6 +699,8 @@ class NameNode(AtomicExprNode): #print "NameNode.analyse_target_declaration:", self.name ### #print "...declaring as py_object_type" ### self.entry = env.declare_var(self.name, py_object_type, self.pos) + if self.entry.is_declared_generic: + self.result_ctype = py_object_type def analyse_types(self, env): self.entry = env.lookup(self.name)