fix no-args int() call
authorStefan Behnel <stefan_ml@behnel.de>
Sat, 23 Nov 2013 19:25:08 +0000 (20:25 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 23 Nov 2013 19:25:08 +0000 (20:25 +0100)
Cython/Compiler/Optimize.py

index 302830c..17b9454 100644 (file)
@@ -2000,7 +2000,7 @@ class OptimizeBuiltinCalls(Visitor.MethodDispatcherTransform):
         """
         if len(pos_args) == 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:
             return node  # int(x, base)
         func_arg = pos_args[0]