# 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.