https://github.com/python/cpython/commit/96bc1721d20ebaf110ae5cd6867fb222c53cb93e
commit: 96bc1721d20ebaf110ae5cd6867fb222c53cb93e
branch: main
author: Bénédikt Tran <10796600+picn...@users.noreply.github.com>
committer: picnixz <10796600+picn...@users.noreply.github.com>
date: 2025-04-28T13:05:39+02:00
summary:

gh-111178: fix incorrect function signatures for Windows builds (#133072)

files:
M PC/_testconsole.c
M PC/winreg.c

diff --git a/PC/_testconsole.c b/PC/_testconsole.c
index 0dcea866f65d35..2538ae3ceba643 100644
--- a/PC/_testconsole.c
+++ b/PC/_testconsole.c
@@ -161,7 +161,7 @@ static PyModuleDef testconsole_def = {
 };
 
 PyMODINIT_FUNC
-PyInit__testconsole(PyObject *spec)
+PyInit__testconsole(void)
 {
     return PyModuleDef_Init(&testconsole_def);
 }
diff --git a/PC/winreg.c b/PC/winreg.c
index e779224fd3b092..c0de5c1353a349 100644
--- a/PC/winreg.c
+++ b/PC/winreg.c
@@ -157,7 +157,7 @@ PyHKEY_deallocFunc(PyObject *ob)
 }
 
 static int
-PyHKEY_traverseFunc(PyHKEYObject *self, visitproc visit, void *arg)
+PyHKEY_traverseFunc(PyObject *self, visitproc visit, void *arg)
 {
     Py_VISIT(Py_TYPE(self));
     return 0;

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to