Commit bfc918c8 authored by Stefan Behnel's avatar Stefan Behnel

fix signed type handling in charptr/bytes coercion

parent 6d5ab790
......@@ -2146,13 +2146,13 @@ class CPointerBaseType(CType):
if self.is_string:
if base_type.signed:
self.to_py_function = "__Pyx_PyBytes_FromUString"
if self.is_ptr:
self.from_py_function = "__Pyx_PyBytes_AsUString"
else:
self.to_py_function = "PyBytes_FromString"
if self.is_ptr:
self.from_py_function = "PyBytes_AsString"
else:
self.to_py_function = "__Pyx_PyBytes_FromUString"
if self.is_ptr:
self.from_py_function = "__Pyx_PyBytes_AsUString"
self.exception_value = "NULL"
def py_type_name(self):
......
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