diff options
author | Victor Stinner <vstinner@python.org> | 2022-03-31 08:02:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 08:02:34 (GMT) |
commit | f0bc69485677ae8973685866ada0982976d3878f (patch) | |
tree | 0d64ad8e39f8e7ad7835d87416b8f6bf9c3d4460 /Python/context.c | |
parent | c14d7e4b816134b8e93ece4066a86d229631ce96 (diff) | |
download | cpython-f0bc69485677ae8973685866ada0982976d3878f.zip cpython-f0bc69485677ae8973685866ada0982976d3878f.tar.gz cpython-f0bc69485677ae8973685866ada0982976d3878f.tar.bz2 |
bpo-47164: Add _PyCFunction_CAST() macro (GH-32192)
Use the macro in C files of the Python/ directory.
Diffstat (limited to 'Python/context.c')
-rw-r--r-- | Python/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/context.c b/Python/context.c index f3033d9..a77cd14 100644 --- a/Python/context.c +++ b/Python/context.c @@ -685,7 +685,7 @@ static PyMethodDef PyContext_methods[] = { _CONTEXTVARS_CONTEXT_KEYS_METHODDEF _CONTEXTVARS_CONTEXT_VALUES_METHODDEF _CONTEXTVARS_CONTEXT_COPY_METHODDEF - {"run", (PyCFunction)(void(*)(void))context_run, METH_FASTCALL | METH_KEYWORDS, NULL}, + {"run", _PyCFunction_CAST(context_run), METH_FASTCALL | METH_KEYWORDS, NULL}, {NULL, NULL} }; |