Commit de469d6e authored by Georg Brandl's avatar Georg Brandl

Fix compilation warning.

 (backport from rev. 56833)
parent eb4b7389
......@@ -665,7 +665,7 @@ newIobject(PyObject *s) {
char *buf;
Py_ssize_t size;
if (PyObject_AsReadBuffer(s, (const char **)&buf, &size)) {
if (PyObject_AsReadBuffer(s, (const void **)&buf, &size)) {
PyErr_Format(PyExc_TypeError, "expected read buffer, %.200s found",
s->ob_type->tp_name);
return NULL;
......
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