Commit 7258ac95 authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash in error case

parent 866ec451
...@@ -2144,7 +2144,7 @@ class CPointerBaseType(CType): ...@@ -2144,7 +2144,7 @@ class CPointerBaseType(CType):
self.is_string = 1 self.is_string = 1
break break
if self.is_string: if self.is_string and not base_type.is_error:
if base_type.signed: if base_type.signed:
self.to_py_function = "PyBytes_FromString" self.to_py_function = "PyBytes_FromString"
if self.is_ptr: if self.is_ptr:
......
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