Skip to content

Commit 87672d7

Browse files
committed
Issue #28003: Fix a compiler warning
1 parent 2b9b70b commit 87672d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/sysmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ static PyMethodDef sys_methods[] = {
14221422
set_coroutine_wrapper_doc},
14231423
{"get_coroutine_wrapper", sys_get_coroutine_wrapper, METH_NOARGS,
14241424
get_coroutine_wrapper_doc},
1425-
{"set_asyncgen_hooks", sys_set_asyncgen_hooks,
1425+
{"set_asyncgen_hooks", (PyCFunction)sys_set_asyncgen_hooks,
14261426
METH_VARARGS | METH_KEYWORDS, set_asyncgen_hooks_doc},
14271427
{"get_asyncgen_hooks", sys_get_asyncgen_hooks, METH_NOARGS,
14281428
get_asyncgen_hooks_doc},

0 commit comments

Comments
 (0)