summaryrefslogtreecommitdiffstats
path: root/Tools/clinic
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2021-05-08 01:17:37 (GMT)
committerGitHub <noreply@github.com>2021-05-08 01:17:37 (GMT)
commit4d4be477055d0f9e415407bcd193788fae04dc11 (patch)
tree5940271bc93dc31e45cc134812c58ba45410d0be /Tools/clinic
parent092f9ddb5e85665552c8207972cd393d492f764e (diff)
downloadcpython-4d4be477055d0f9e415407bcd193788fae04dc11.zip
cpython-4d4be477055d0f9e415407bcd193788fae04dc11.tar.gz
cpython-4d4be477055d0f9e415407bcd193788fae04dc11.tar.bz2
Do not use Py_ssize_clean_t (GH-25940)
Diffstat (limited to 'Tools/clinic')
-rwxr-xr-xTools/clinic/clinic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 9597426..b287916 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -2534,7 +2534,7 @@ class CConverter(metaclass=CConverterAutoRegister):
# impl_parameters
data.impl_parameters.append(self.simple_declaration(by_reference=self.impl_by_reference))
if self.length:
- data.impl_parameters.append("Py_ssize_clean_t " + self.length_name())
+ data.impl_parameters.append("Py_ssize_t " + self.length_name())
def _render_non_self(self, parameter, data):
self.parameter = parameter
@@ -2640,7 +2640,7 @@ class CConverter(metaclass=CConverterAutoRegister):
declaration.append(default)
declaration.append(";")
if self.length:
- declaration.append('\nPy_ssize_clean_t ')
+ declaration.append('\nPy_ssize_t ')
declaration.append(self.length_name())
declaration.append(';')
return "".join(declaration)