[Python-checkins] r52381 - python/branches/release25-maint/Modules/cStringIO.c
tim.peters
python-checkins at python.org
Wed Oct 18 07:30:25 CEST 2006
Author: tim.peters
Date: Wed Oct 18 07:30:25 2006
New Revision: 52381
Modified:
python/branches/release25-maint/Modules/cStringIO.c
Log:
C:\Code\python>type c.txt
Merge rev 52377 from trunk:
newIobject(): repaired incorrect cast to quiet MSVC warning.
Modified: python/branches/release25-maint/Modules/cStringIO.c
==============================================================================
--- python/branches/release25-maint/Modules/cStringIO.c (original)
+++ python/branches/release25-maint/Modules/cStringIO.c Wed Oct 18 07:30:25 2006
@@ -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);
More information about the Python-checkins
mailing list