summaryrefslogtreecommitdiffstats
path: root/Modules/cStringIO.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-10-18 05:06:06 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-10-18 05:06:06 (GMT)
commit79665b1403c57f7a546227f74c8900e960012a6a (patch)
treed84e72683629e033ea8a252dcc95e92e67446ad0 /Modules/cStringIO.c
parentd2ea4a258401dd97a5084398803ee8193f4f9c7a (diff)
downloadcpython-79665b1403c57f7a546227f74c8900e960012a6a.zip
cpython-79665b1403c57f7a546227f74c8900e960012a6a.tar.gz
cpython-79665b1403c57f7a546227f74c8900e960012a6a.tar.bz2
newIobject(): repaired incorrect cast to quiet MSVC warning.
Diffstat (limited to 'Modules/cStringIO.c')
-rw-r--r--Modules/cStringIO.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/cStringIO.c b/Modules/cStringIO.c
index 03ef461..100891b 100644
--- a/Modules/cStringIO.c
+++ b/Modules/cStringIO.c
@@ -657,7 +657,7 @@ newIobject(PyObject *s) {
char *buf;
Py_ssize_t size;
- if (PyObject_AsCharBuffer(s, (const void **)&buf, &size) != 0)
+ if (PyObject_AsCharBuffer(s, (const char **)&buf, &size) != 0)
return NULL;
self = PyObject_New(Iobject, &Itype);