From 95d94947f0d0dc269f507961cb491a57352f7bc6 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 8 Aug 2007 13:50:02 +0000 Subject: Fix compilation warning. --- Modules/cStringIO.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/cStringIO.c b/Modules/cStringIO.c index 0cc9c6b..98d883c 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; -- cgit v0.12