diff options
author | Georg Brandl <georg@python.org> | 2007-08-08 13:50:02 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-08-08 13:50:02 (GMT) |
commit | 95d94947f0d0dc269f507961cb491a57352f7bc6 (patch) | |
tree | 06db61d3c1484a78938835615af88931eaf51389 /Modules | |
parent | 9616444427cbbc5283f21a09ffa852ad21805588 (diff) | |
download | cpython-95d94947f0d0dc269f507961cb491a57352f7bc6.zip cpython-95d94947f0d0dc269f507961cb491a57352f7bc6.tar.gz cpython-95d94947f0d0dc269f507961cb491a57352f7bc6.tar.bz2 |
Fix compilation warning.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/cStringIO.c | 2 |
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; |