mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-35059: PyObject_INIT() casts to PyObject* (GH-10674)
PyObject_INIT() and PyObject_INIT_VAR() now cast their first argument
to PyObject*, as done in Python 3.7.
Revert partially commit b4435e20a9.
This commit is contained in:
parent
353933e712
commit
b509d52083
8 changed files with 18 additions and 12 deletions
|
|
@ -459,7 +459,7 @@ PyHKEY_FromHKEY(HKEY h)
|
|||
op = (PyHKEYObject *) PyObject_MALLOC(sizeof(PyHKEYObject));
|
||||
if (op == NULL)
|
||||
return PyErr_NoMemory();
|
||||
PyObject_INIT((PyObject *)op, &PyHKEY_Type);
|
||||
PyObject_INIT(op, &PyHKEY_Type);
|
||||
op->hkey = h;
|
||||
return (PyObject *)op;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue