summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-08 13:50:02 (GMT)
committerGeorg Brandl <georg@python.org>2007-08-08 13:50:02 (GMT)
commit95d94947f0d0dc269f507961cb491a57352f7bc6 (patch)
tree06db61d3c1484a78938835615af88931eaf51389 /Modules
parent9616444427cbbc5283f21a09ffa852ad21805588 (diff)
downloadcpython-95d94947f0d0dc269f507961cb491a57352f7bc6.zip
cpython-95d94947f0d0dc269f507961cb491a57352f7bc6.tar.gz
cpython-95d94947f0d0dc269f507961cb491a57352f7bc6.tar.bz2
Fix compilation warning.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/cStringIO.c2
1 files changed, 1 insertions, 1 deletions
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;