summaryrefslogtreecommitdiffstats
path: root/Doc/extending/extending.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/extending/extending.rst')
-rw-r--r--Doc/extending/extending.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst
index b788a55..9fbd91f 100644
--- a/Doc/extending/extending.rst
+++ b/Doc/extending/extending.rst
@@ -757,7 +757,7 @@ Philbrick (philbrick@hks.com)::
* only take two PyObject* parameters, and keywdarg_parrot() takes
* three.
*/
- {"parrot", (PyCFunction)keywdarg_parrot, METH_VARARGS | METH_KEYWORDS,
+ {"parrot", (PyCFunction)(void(*)(void))keywdarg_parrot, METH_VARARGS | METH_KEYWORDS,
"Print a lovely skit to standard output."},
{NULL, NULL, 0, NULL} /* sentinel */
};