summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-09-09 07:05:42 (GMT)
committerYury Selivanov <yury@magic.io>2016-09-09 07:05:42 (GMT)
commit87672d777a07f332d1d1373d47b78d3cda3334ac (patch)
tree8ff439b5c41ffcb73384b2d4901f59b1beb80c43 /Python
parent2b9b70b43bce95dc9d98dcf1ff109e6b13b246aa (diff)
downloadcpython-87672d777a07f332d1d1373d47b78d3cda3334ac.zip
cpython-87672d777a07f332d1d1373d47b78d3cda3334ac.tar.gz
cpython-87672d777a07f332d1d1373d47b78d3cda3334ac.tar.bz2
Issue #28003: Fix a compiler warning
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 3a02ae9..44191fc 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1422,7 +1422,7 @@ static PyMethodDef sys_methods[] = {
set_coroutine_wrapper_doc},
{"get_coroutine_wrapper", sys_get_coroutine_wrapper, METH_NOARGS,
get_coroutine_wrapper_doc},
- {"set_asyncgen_hooks", sys_set_asyncgen_hooks,
+ {"set_asyncgen_hooks", (PyCFunction)sys_set_asyncgen_hooks,
METH_VARARGS | METH_KEYWORDS, set_asyncgen_hooks_doc},
{"get_asyncgen_hooks", sys_get_asyncgen_hooks, METH_NOARGS,
get_asyncgen_hooks_doc},