summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PC/winreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/winreg.c b/PC/winreg.c
index a24d784..78c0869 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;
}