Commit f5f64f5b authored by Stefan Behnel's avatar Stefan Behnel

Fix return type assumption about optimised str() call in Py2.

parent 5ab92ce5
......@@ -2313,7 +2313,7 @@ class OptimizeBuiltinCalls(Visitor.NodeRefCleanupMixin,
node, function.obj, attr_name, arg_list)
PyObject_String_func_type = PyrexTypes.CFuncType(
Builtin.str_type, [
PyrexTypes.py_object_type, [ # Change this to Builtin.str_type when removing Py2 support.
PyrexTypes.CFuncTypeArg("obj", PyrexTypes.py_object_type, None)
])
......
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