Fix compilation warning.

This commit is contained in:
Georg Brandl 2007-08-08 13:50:02 +00:00
parent 9616444427
commit 95d94947f0
1 changed files with 1 additions and 1 deletions

View File

@ -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;