commit | de469d6e9143806a82dcc5d7cd424f2daf66e797 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Wed Aug 08 13:50:04 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Wed Aug 08 13:50:04 2007 +0000 |
tree | 769827e842de24d597a1c8faa85e2511cf7c6b7e | |
parent | eb4b738963dc915f0281107b05c04bcf6b1c90d7 [diff] [blame] |
Fix compilation warning. (backport from rev. 56833)
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 @@ 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;