]> granicus.if.org Git - python/commitdiff
Fix compilation warning.
authorGeorg Brandl <georg@python.org>
Wed, 8 Aug 2007 13:50:02 +0000 (13:50 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 8 Aug 2007 13:50:02 +0000 (13:50 +0000)
Modules/cStringIO.c

index 0cc9c6bb804ca2dcb03b19364ba66990810e4588..98d883c55d8001aa65049248e88a92cab91af19f 100644 (file)
@@ -673,7 +673,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;