Skip to content

Commit a197210

Browse files
committed
remove un-necessary casts for initproc
1 parent f641773 commit a197210

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Modules/_asynciomodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2956,7 +2956,7 @@ static PyType_Slot Task_slots[] = {
29562956
{Py_tp_iter, future_new_iter},
29572957
{Py_tp_methods, TaskType_methods},
29582958
{Py_tp_getset, TaskType_getsetlist},
2959-
{Py_tp_init, (initproc)_asyncio_Task___init__},
2959+
{Py_tp_init, _asyncio_Task___init__},
29602960
{Py_tp_new, PyType_GenericNew},
29612961
{Py_tp_finalize, TaskObj_finalize},
29622962

Modules/_testcapi/exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ static PyTypeObject PyRecursingInfinitelyError_Type = {
538538
.tp_basicsize = sizeof(PyBaseExceptionObject),
539539
.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
540540
.tp_doc = PyDoc_STR("Instantiating this exception starts infinite recursion."),
541-
.tp_init = (initproc)recurse_infinitely_error_init,
541+
.tp_init = recurse_infinitely_error_init,
542542
};
543543

544544
static PyMethodDef test_methods[] = {

Objects/bytearrayobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2832,7 +2832,7 @@ PyTypeObject PyByteArray_Type = {
28322832
0, /* tp_descr_get */
28332833
0, /* tp_descr_set */
28342834
0, /* tp_dictoffset */
2835-
(initproc)bytearray___init__, /* tp_init */
2835+
bytearray___init__, /* tp_init */
28362836
PyType_GenericAlloc, /* tp_alloc */
28372837
PyType_GenericNew, /* tp_new */
28382838
PyObject_Free, /* tp_free */

Objects/listobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3873,7 +3873,7 @@ PyTypeObject PyList_Type = {
38733873
0, /* tp_descr_get */
38743874
0, /* tp_descr_set */
38753875
0, /* tp_dictoffset */
3876-
(initproc)list___init__, /* tp_init */
3876+
list___init__, /* tp_init */
38773877
PyType_GenericAlloc, /* tp_alloc */
38783878
PyType_GenericNew, /* tp_new */
38793879
PyObject_GC_Del, /* tp_free */

0 commit comments

Comments
 (0)