diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-10-18 05:30:25 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-10-18 05:30:25 +0000 |
commit | fbbfb4b976dcbeed8e3e5acde1be182449e43178 (patch) | |
tree | 4a006a51d37987607e8c5151762c037564daddf9 /Modules/cStringIO.c | |
parent | dcbf64d34ddef32cb49ebbd19958ddd426cbdab6 (diff) | |
download | cpython-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.c | 2 |
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); |