[Python-checkins] r56833 - python/trunk/Modules/cStringIO.c
georg.brandl
python-checkins at python.org
Wed Aug 8 15:50:02 CEST 2007
Author: georg.brandl
Date: Wed Aug 8 15:50:02 2007
New Revision: 56833
Modified:
python/trunk/Modules/cStringIO.c
Log:
Fix compilation warning.
Modified: python/trunk/Modules/cStringIO.c
==============================================================================
--- python/trunk/Modules/cStringIO.c (original)
+++ python/trunk/Modules/cStringIO.c Wed Aug 8 15:50:02 2007
@@ -673,7 +673,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;
More information about the Python-checkins
mailing list