Commit 2f68c852 authored by Stefan Behnel's avatar Stefan Behnel

C-arrays of uchar/schar are also C strings

parent 645676e1
......@@ -1530,7 +1530,7 @@ class CArrayType(CType):
def __init__(self, base_type, size):
self.base_type = base_type
self.size = size
if base_type is c_char_type:
if base_type in (c_char_type, c_uchar_type, c_schar_type):
self.is_string = 1
def __repr__(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