From 4eba71dcb73bb67bcab401cc6f7371a4ecc081e2 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sun, 19 Aug 2007 03:56:31 -0700 Subject: [PATCH] remove pointer warning for generic arguments --- Cython/Compiler/ExprNodes.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.26.2