Commit 79665b14 authored by Tim Peters's avatar Tim Peters

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

parent d2ea4a25
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment