mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
newIobject(): repaired incorrect cast to quiet MSVC warning.
This commit is contained in:
parent
d2ea4a2584
commit
79665b1403
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue