commit | 95d94947f0d0dc269f507961cb491a57352f7bc6 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Wed Aug 08 13:50:02 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Wed Aug 08 13:50:02 2007 +0000 |
tree | 06db61d3c1484a78938835615af88931eaf51389 | |
parent | 9616444427cbbc5283f21a09ffa852ad21805588 [diff] [blame] |
Fix compilation warning.
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 @@ 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;