]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
C:\Code\python>type c.txt
authorTim Peters <tim.peters@gmail.com>
Wed, 18 Oct 2006 05:30:25 +0000 (05:30 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 18 Oct 2006 05:30:25 +0000 (05:30 +0000)
Merge rev 52377 from trunk:

newIobject():  repaired incorrect cast to quiet MSVC warning.

Modules/cStringIO.c

index 03ef4616021d2c7c1a761a73b91b5361f8666308..100891ba4ad321a93f91868a0b4d257a89526404 100644 (file)
@@ -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);