diff options
author | 2020-08-05 16:23:10 +0200 | |
---|---|---|
committer | 2020-08-05 16:23:10 +0200 | |
commit | 15edaecd97a3f8e82895046462342d8ddd8b9f1b (patch) | |
tree | a41e1555a72935c8f6d563fb5ba60bd4770c248d /PC | |
parent | bpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-20312) (diff) | |
download | cpython-15edaecd97a3f8e82895046462342d8ddd8b9f1b.tar.gz cpython-15edaecd97a3f8e82895046462342d8ddd8b9f1b.tar.bz2 cpython-15edaecd97a3f8e82895046462342d8ddd8b9f1b.zip |
bpo-40989: Fix compiler warning in winreg.c (GH-21722)
Explicitly cast PyHKEYObject* to PyObject* to call _PyObject_Init().
Diffstat (limited to 'PC')
-rw-r--r-- | PC/winreg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/winreg.c b/PC/winreg.c index a24d784c77..78c08693a8 100644 --- a/PC/winreg.c +++ b/PC/winreg.c @@ -463,7 +463,7 @@ PyHKEY_FromHKEY(HKEY h) if (op == NULL) { return PyErr_NoMemory(); } - _PyObject_Init(op, &PyHKEY_Type); + _PyObject_Init((PyObject*)op, &PyHKEY_Type); op->hkey = h; return (PyObject *)op; } |