fix safety coercion after call node optimisation
authorStefan Behnel <stefan_ml@behnel.de>
Wed, 6 Feb 2013 09:47:23 +0000 (10:47 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Wed, 6 Feb 2013 09:47:23 +0000 (10:47 +0100)
Cython/Compiler/Optimize.py

index 80d6609..75f0aff 100644 (file)
@@ -1189,7 +1189,8 @@ class SimplifyCalls(Visitor.EnvTransform):
             args=args)
         call_node.analyse_types(self.current_env())
         if node.type != call_node.type:
-            call_node = call_node.coerce_to(node.type)
+            call_node = call_node.coerce_to(
+                node.type, self.current_env())
         return call_node