remove pointer warning for generic arguments
authorRobert Bradshaw <robertwb@math.washington.edu>
Sun, 19 Aug 2007 10:56:31 +0000 (03:56 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sun, 19 Aug 2007 10:56:31 +0000 (03:56 -0700)
Cython/Compiler/ExprNodes.py

index f3eeeeb0235cfa5af74285f1d5cf2613adcb1f5b..80b0845ed409a4145a72ec356b624c2c5cad9879 100644 (file)
@@ -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)