From 2f68c852392007a8d96e8218f380b40802cc3b36 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 12 Feb 2011 13:48:43 +0100 Subject: [PATCH] C-arrays of uchar/schar are also C strings --- Cython/Compiler/PyrexTypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.26.2