summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-08 13:50:04 (GMT)
committerGeorg Brandl <georg@python.org>2007-08-08 13:50:04 (GMT)
commitde469d6e9143806a82dcc5d7cd424f2daf66e797 (patch)
tree769827e842de24d597a1c8faa85e2511cf7c6b7e /Modules
parenteb4b738963dc915f0281107b05c04bcf6b1c90d7 (diff)
downloadcpython-de469d6e9143806a82dcc5d7cd424f2daf66e797.zip
cpython-de469d6e9143806a82dcc5d7cd424f2daf66e797.tar.gz
cpython-de469d6e9143806a82dcc5d7cd424f2daf66e797.tar.bz2
Fix compilation warning.
(backport from rev. 56833)
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 2d8a6ab..a6fad9c 100644
--- a/Modules/cStringIO.c
+++ b/Modules/cStringIO.c
@@ -665,7 +665,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;