]> granicus.if.org Git - python/commitdiff
newIobject(): repaired incorrect cast to quiet MSVC warning.
authorTim Peters <tim.peters@gmail.com>
Wed, 18 Oct 2006 05:06:06 +0000 (05:06 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 18 Oct 2006 05:06:06 +0000 (05:06 +0000)
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);