Commit 0283536e authored by Stefan Behnel's avatar Stefan Behnel

do not drop 'redundant' type casts during optimisation, as the user may have...

do not drop 'redundant' type casts during optimisation, as the user may have had a reason to be explicit about them
parent 36ee0c94
...@@ -1689,7 +1689,9 @@ class OptimizeBuiltinCalls(Visitor.EnvTransform): ...@@ -1689,7 +1689,9 @@ class OptimizeBuiltinCalls(Visitor.EnvTransform):
return node return node
return node.arg return node.arg
def visit_TypecastNode(self, node): def _visit_TypecastNode(self, node):
# disabled - the user may have had a reason to put a type
# cast, even if it looks redundant to Cython
""" """
Drop redundant type casts. Drop redundant type casts.
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment