From: Tim Peters Date: Wed, 18 Oct 2006 05:30:25 +0000 (+0000) Subject: C:\Code\python>type c.txt X-Git-Tag: v2.5.1c1~312 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fbbfb4b976dcbeed8e3e5acde1be182449e43178;p=thirdparty%2FPython%2Fcpython.git C:\Code\python>type c.txt Merge rev 52377 from trunk: newIobject(): repaired incorrect cast to quiet MSVC warning. --- diff --git a/Modules/cStringIO.c b/Modules/cStringIO.c index 03ef4616021d..100891ba4ad3 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);