diff options
author | Victor Stinner <vstinner@python.org> | 2022-03-31 10:02:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 10:02:34 +0200 |
commit | f0bc69485677ae8973685866ada0982976d3878f (patch) | |
tree | 0d64ad8e39f8e7ad7835d87416b8f6bf9c3d4460 /Python/traceback.c | |
parent | c14d7e4b816134b8e93ece4066a86d229631ce96 (diff) | |
download | cpython-f0bc69485677ae8973685866ada0982976d3878f.tar.gz cpython-f0bc69485677ae8973685866ada0982976d3878f.zip |
bpo-47164: Add _PyCFunction_CAST() macro (GH-32192)
Use the macro in C files of the Python/ directory.
Diffstat (limited to 'Python/traceback.c')
-rw-r--r-- | Python/traceback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c index f5c1849101a..0d0eb954c23 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -149,7 +149,7 @@ tb_next_set(PyTracebackObject *self, PyObject *new_next, void *Py_UNUSED(_)) static PyMethodDef tb_methods[] = { - {"__dir__", (PyCFunction)tb_dir, METH_NOARGS}, + {"__dir__", _PyCFunction_CAST(tb_dir), METH_NOARGS}, {NULL, NULL, 0, NULL}, }; |