Commit 2509a58e authored by Stefan Behnel's avatar Stefan Behnel

delete dead code (type.is_ptr never coincides with type.is_int)

parent 78f69612
......@@ -483,9 +483,9 @@ def safe_spanning_type(types, might_overflow, pos):
# find_spanning_type() only returns 'bint' for clean boolean
# operations without other int types, so this is safe, too
return result_type
elif result_type.is_ptr and not (result_type.is_int and result_type.rank == 0):
elif result_type.is_ptr:
# Any pointer except (signed|unsigned|) char* can't implicitly
# become a PyObject.
# become a PyObject, and inferring char* is now accepted, too.
return result_type
elif result_type.is_cpp_class:
# These can't implicitly become Python objects either.
......
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