Fix compilation warning.
authorGeorg Brandl <georg@python.org>
Wed, 8 Aug 2007 13:50:04 +0000 (13:50 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 8 Aug 2007 13:50:04 +0000 (13:50 +0000)
 (backport from rev. 56833)

Modules/cStringIO.c

index 2d8a6abd76bcd49420aa035a225140b570adc129..a6fad9cbf37908e59cdb972325d1e9aa7912b8b2 100644 (file)
@@ -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;