Commit ff220426 authored by Robert Bradshaw's avatar Robert Bradshaw

c89 fix

parent b58bb78d
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment