mirror of https://github.com/python/cpython
C:\Code\python>type c.txt
Merge rev 52377 from trunk: newIobject(): repaired incorrect cast to quiet MSVC warning.
This commit is contained in:
parent
dcbf64d34d
commit
fbbfb4b976
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue