Commit 95d94947 authored by Georg Brandl's avatar Georg Brandl

Fix compilation warning.

parent 96164444
......@@ -673,7 +673,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