From: Stefan Behnel Date: Sat, 12 Feb 2011 12:48:43 +0000 (+0100) Subject: C-arrays of uchar/schar are also C strings X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2f68c852392007a8d96e8218f380b40802cc3b36;p=cython.git C-arrays of uchar/schar are also C strings --- diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index 3bc6a1ff..a5bbb787 100755 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -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):