diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-11-23 13:27:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-23 13:27:38 (GMT) |
commit | b509d52083e156f97d6bd36f2f894a052e960f03 (patch) | |
tree | e1df9b8a25b5bffccf4d20ef0a08487bab5def64 /Objects/methodobject.c | |
parent | 353933e712b6c7f7ba9a9a50bd5bd472db7c35d0 (diff) | |
download | cpython-b509d52083e156f97d6bd36f2f894a052e960f03.zip cpython-b509d52083e156f97d6bd36f2f894a052e960f03.tar.gz cpython-b509d52083e156f97d6bd36f2f894a052e960f03.tar.bz2 |
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 b4435e20a92af474f117b78b98ddc6f515363af5.
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r-- | Objects/methodobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c index 23325e2..6dec642 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -32,7 +32,7 @@ PyCFunction_NewEx(PyMethodDef *ml, PyObject *self, PyObject *module) op = free_list; if (op != NULL) { free_list = (PyCFunctionObject *)(op->m_self); - (void)PyObject_INIT((PyObject *)op, &PyCFunction_Type); + (void)PyObject_INIT(op, &PyCFunction_Type); numfree--; } else { |