From b4435e20a92af474f117b78b98ddc6f515363af5 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 26 Oct 2018 14:35:00 +0200 Subject: bpo-35059: Convert PyObject_INIT() to function (GH-10077) * Convert PyObject_INIT() and PyObject_INIT_VAR() macros to static inline functions. * Fix usage of these functions: cast to PyObject* or PyVarObject*. --- Objects/classobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Objects/classobject.c') diff --git a/Objects/classobject.c b/Objects/classobject.c index a193ada6d4..c4efaf2820 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -55,7 +55,7 @@ PyMethod_New(PyObject *func, PyObject *self) im = free_list; if (im != NULL) { free_list = (PyMethodObject *)(im->im_self); - (void)PyObject_INIT(im, &PyMethod_Type); + (void)PyObject_INIT((PyObject *)im, &PyMethod_Type); numfree--; } else { -- cgit v1.2.1