aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Objects/tupleobject.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2025-03-11 16:33:36 +0100
committerGitHub <noreply@github.com>2025-03-11 16:33:36 +0100
commit9d759b63d8028a987ffad4e8750b13ecfa934967 (patch)
treeb09d75d6fe86a58b85f84f51592f70bfb721ea84 /Objects/tupleobject.c
parent4162bc133b21ccb06d3589bd69ddb7bb248c58d2 (diff)
downloadcpython-9d759b63d8028a987ffad4e8750b13ecfa934967.tar.gz
cpython-9d759b63d8028a987ffad4e8750b13ecfa934967.zip
gh-111178: Change Argument Clinic signature for METH_O (#130682)
Use "PyObject*" for METH_O functions to fix an undefined behavior.
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r--Objects/tupleobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index b7416a5a1c5..1b2b53646da 100644
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -604,8 +604,8 @@ Return number of occurrences of value.
[clinic start generated code]*/
static PyObject *
-tuple_count(PyTupleObject *self, PyObject *value)
-/*[clinic end generated code: output=aa927affc5a97605 input=531721aff65bd772]*/
+tuple_count_impl(PyTupleObject *self, PyObject *value)
+/*[clinic end generated code: output=cf02888d4bc15d7a input=531721aff65bd772]*/
{
Py_ssize_t count = 0;
Py_ssize_t i;