diff Modules/cStringIO.c @ 40147:fb0c6a67a939 2.5

C:\Code\python>type c.txt Merge rev 52377 from trunk: newIobject(): repaired incorrect cast to quiet MSVC warning.
author Tim Peters <tim.peters@gmail.com>
date Wed, 18 Oct 2006 05:30:25 +0000
parents 6e6c220c2fa6
children 0a6e537b8d96 0fdc2b8211f9
line wrap: on
line diff
--- a/Modules/cStringIO.c	Tue Oct 17 19:41:10 2006 +0000
+++ b/Modules/cStringIO.c	Wed Oct 18 05:30:25 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);