diff Modules/cStringIO.c @ 40143:498cf4b09d8a legacy-trunk

newIobject(): repaired incorrect cast to quiet MSVC warning.
author Tim Peters <tim.peters@gmail.com>
date Wed, 18 Oct 2006 05:06:06 +0000
parents 647598c1a9d9
children 0a6e537b8d96 0fdc2b8211f9
line wrap: on
line diff
--- a/Modules/cStringIO.c	Tue Oct 17 19:30:48 2006 +0000
+++ b/Modules/cStringIO.c	Wed Oct 18 05:06:06 2006 +0000
@@ -657,7 +657,7 @@
   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);