summaryrefslogtreecommitdiffstats
path: root/PC/winreg.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-10-26 12:35:00 (GMT)
committerGitHub <noreply@github.com>2018-10-26 12:35:00 (GMT)
commitb4435e20a92af474f117b78b98ddc6f515363af5 (patch)
tree4383bfb9ba3f9ec21a2d0cbdd726b38c5a9e1956 /PC/winreg.c
parent7cd25434164882c2093ea41ccfc7b95a05cd5cbd (diff)
downloadcpython-b4435e20a92af474f117b78b98ddc6f515363af5.zip
cpython-b4435e20a92af474f117b78b98ddc6f515363af5.tar.gz
cpython-b4435e20a92af474f117b78b98ddc6f515363af5.tar.bz2
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*.
Diffstat (limited to 'PC/winreg.c')
-rw-r--r--PC/winreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/winreg.c b/PC/winreg.c
index 78864b1..4f5a676 100644
--- a/PC/winreg.c
+++ b/PC/winreg.c
@@ -459,7 +459,7 @@ PyHKEY_FromHKEY(HKEY h)
op = (PyHKEYObject *) PyObject_MALLOC(sizeof(PyHKEYObject));
if (op == NULL)
return PyErr_NoMemory();
- PyObject_INIT(op, &PyHKEY_Type);
+ PyObject_INIT((PyObject *)op, &PyHKEY_Type);
op->hkey = h;
return (PyObject *)op;
}