Mercurial > cpython-lru_cache-weakref
diff Modules/cStringIO.c @ 42495:57cd070ad304 2.5
Fix compilation warning.
(backport from rev. 56833)
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Wed, 08 Aug 2007 13:50:04 +0000 |
| parents | 89c81fd7038e |
| children | 8cbe0bd93c28 |
line wrap: on
line diff
--- a/Modules/cStringIO.c Wed Aug 08 13:03:45 2007 +0000 +++ b/Modules/cStringIO.c Wed Aug 08 13:50:04 2007 +0000 @@ -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;
