aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-03-31 10:02:34 +0200
committerGitHub <noreply@github.com>2022-03-31 10:02:34 +0200
commitf0bc69485677ae8973685866ada0982976d3878f (patch)
tree0d64ad8e39f8e7ad7835d87416b8f6bf9c3d4460 /Python/traceback.c
parentc14d7e4b816134b8e93ece4066a86d229631ce96 (diff)
downloadcpython-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.c2
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},
};