signedness fix for unicode-for-loop iteration
authorStefan Behnel <scoder@users.berlios.de>
Sun, 18 Apr 2010 21:21:10 +0000 (23:21 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 18 Apr 2010 21:21:10 +0000 (23:21 +0200)
Cython/Compiler/Optimize.py

index 72f5f701cceab7736bf89a115e496bcdbc23694c..e68f7bfc0f65a84a3cf311a4fc8348ea3d1859d4 100644 (file)
@@ -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)
             ])