mirror of https://github.com/python/cpython
Fix compilation warning.
This commit is contained in:
parent
9616444427
commit
95d94947f0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue