newIobject(): repaired incorrect cast to quiet MSVC warning.

This commit is contained in:
Tim Peters 2006-10-18 05:06:06 +00:00
parent d2ea4a2584
commit 79665b1403

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