From: Stefan Behnel Date: Sun, 18 Apr 2010 21:21:10 +0000 (+0200) Subject: signedness fix for unicode-for-loop iteration X-Git-Tag: 0.13.beta0~182 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=025153fbea9fd7220ed4f9306e1a3ec5aa1fb612;p=cython.git signedness fix for unicode-for-loop iteration --- diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index 72f5f701..e68f7bfc 100644 --- a/Cython/Compiler/Optimize.py +++ b/Cython/Compiler/Optimize.py @@ -137,7 +137,7 @@ class IterationTransform(Visitor.VisitorTransform): return node PyUnicode_AS_UNICODE_func_type = PyrexTypes.CFuncType( - PyrexTypes.c_int_ptr_type, [ # FIXME: return type is actually Py_UNICODE* + PyrexTypes.CPtrType(PyrexTypes.c_uint_type), [ # FIXME: return type is actually Py_UNICODE* PyrexTypes.CFuncTypeArg("s", Builtin.unicode_type, None) ])