From ff220426f872f89a088a9f3d4831d6e1aadee68b Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 21 Feb 2013 15:40:13 -0800 Subject: [PATCH] c89 fix --- Cython/Utility/TypeConversion.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cython/Utility/TypeConversion.c b/Cython/Utility/TypeConversion.c index 0d1d92b..b5cd9ba 100644 --- a/Cython/Utility/TypeConversion.c +++ b/Cython/Utility/TypeConversion.c @@ -124,7 +124,8 @@ static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_ PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); char* maybe_ascii = PyBytes_AS_STRING(defenc); char* end = maybe_ascii + PyBytes_GET_SIZE(defenc); - for (char* c = maybe_ascii; c < end; c++) { + char* c; + for (c = maybe_ascii; c < end; c++) { if ((unsigned char) (*c) >= 128) { // raise the error PyUnicode_AsASCIIString(o); -- 2.7.4