diff options
author | Georg Brandl <georg@python.org> | 2007-08-08 13:50:04 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-08-08 13:50:04 (GMT) |
commit | de469d6e9143806a82dcc5d7cd424f2daf66e797 (patch) | |
tree | 769827e842de24d597a1c8faa85e2511cf7c6b7e /Modules | |
parent | eb4b738963dc915f0281107b05c04bcf6b1c90d7 (diff) | |
download | cpython-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.c | 2 |
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; |