C:\Code\python>type c.txt

Merge rev 52377 from trunk:

newIobject():  repaired incorrect cast to quiet MSVC warning.
This commit is contained in:
Tim Peters 2006-10-18 05:30:25 +00:00
parent dcbf64d34d
commit fbbfb4b976
1 changed files with 1 additions and 1 deletions

View 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);