summaryrefslogtreecommitdiff
path: root/Modules/cStringIO.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-10-18 05:30:25 +0000
committerTim Peters <tim.peters@gmail.com>2006-10-18 05:30:25 +0000
commitfbbfb4b976dcbeed8e3e5acde1be182449e43178 (patch)
tree4a006a51d37987607e8c5151762c037564daddf9 /Modules/cStringIO.c
parentdcbf64d34ddef32cb49ebbd19958ddd426cbdab6 (diff)
downloadcpython-git-fbbfb4b976dcbeed8e3e5acde1be182449e43178.tar.gz
C:\Code\python>type c.txt
Merge rev 52377 from trunk: 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 03ef461602..100891ba4a 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);