Commit 82a4ead2 authored by Stefan Behnel's avatar Stefan Behnel

fix no-args int() call

parent e9dcdec0
...@@ -2000,7 +2000,7 @@ class OptimizeBuiltinCalls(Visitor.MethodDispatcherTransform): ...@@ -2000,7 +2000,7 @@ class OptimizeBuiltinCalls(Visitor.MethodDispatcherTransform):
""" """
if len(pos_args) == 0: if len(pos_args) == 0:
return ExprNodes.IntNode(node, value="0", constant_result=0, return ExprNodes.IntNode(node, value="0", constant_result=0,
type=PyrexTypes.c_int_type) type=PyrexTypes.py_object_type)
elif len(pos_args) != 1: elif len(pos_args) != 1:
return node # int(x, base) return node # int(x, base)
func_arg = pos_args[0] func_arg = pos_args[0]
......
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