Commit 07c52660 authored by Stefan Behnel's avatar Stefan Behnel

Simplify code.

parent d343cc13
......@@ -307,8 +307,7 @@ class MarkOverflowingArithmetic(CythonTransform):
return self.visit_dangerous_node(node)
def visit_SimpleCallNode(self, node):
if (isinstance(node.function, ExprNodes.NameNode)
and node.function.name == 'abs'):
if node.function.is_name and node.function.name == 'abs':
# Overflows for minimum value of fixed size ints.
return self.visit_dangerous_node(node)
else:
......
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