From: Georg Brandl Date: Wed, 8 Aug 2007 13:50:02 +0000 (+0000) Subject: Fix compilation warning. X-Git-Tag: v2.6a1~1517 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95d94947f0d0dc269f507961cb491a57352f7bc6;p=thirdparty%2FPython%2Fcpython.git Fix compilation warning. --- diff --git a/Modules/cStringIO.c b/Modules/cStringIO.c index 0cc9c6bb804c..98d883c55d80 100644 --- a/Modules/cStringIO.c +++ b/Modules/cStringIO.c @@ -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;