c89 fix
authorRobert Bradshaw <robertwb@google.com>
Thu, 21 Feb 2013 23:40:13 +0000 (15:40 -0800)
committerRobert Bradshaw <robertwb@google.com>
Thu, 21 Feb 2013 23:40:13 +0000 (15:40 -0800)
Cython/Utility/TypeConversion.c

index 0d1d92b..b5cd9ba 100644 (file)
@@ -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);