From 025153fbea9fd7220ed4f9306e1a3ec5aa1fb612 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 18 Apr 2010 23:21:10 +0200 Subject: [PATCH] signedness fix for unicode-for-loop iteration --- Cython/Compiler/Optimize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ]) -- 2.26.2