Do not use Py_ssize_clean_t (GH-25940)

This commit is contained in:
Inada Naoki 2021-05-08 10:17:37 +09:00 committed by GitHub
parent 092f9ddb5e
commit 4d4be47705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 46 additions and 56 deletions

View file

@ -542,14 +542,14 @@ PyDoc_STRVAR(unicodedata_UCD_lookup__doc__,
static PyObject *
unicodedata_UCD_lookup_impl(PyObject *self, const char *name,
Py_ssize_clean_t name_length);
Py_ssize_t name_length);
static PyObject *
unicodedata_UCD_lookup(PyObject *self, PyObject *arg)
{
PyObject *return_value = NULL;
const char *name;
Py_ssize_clean_t name_length;
Py_ssize_t name_length;
if (!PyArg_Parse(arg, "s#:lookup", &name, &name_length)) {
goto exit;
@ -559,4 +559,4 @@ unicodedata_UCD_lookup(PyObject *self, PyObject *arg)
exit:
return return_value;
}
/*[clinic end generated code: output=10c23477dbe8a202 input=a9049054013a1b77]*/
/*[clinic end generated code: output=a3c0eb84eda47b2d input=a9049054013a1b77]*/