mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Fix compilation warning.
This commit is contained in:
parent
9616444427
commit
95d94947f0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue