mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Do not use Py_ssize_clean_t (GH-25940)
This commit is contained in:
parent
092f9ddb5e
commit
4d4be47705
9 changed files with 46 additions and 56 deletions
6
Modules/clinic/unicodedata.c.h
generated
6
Modules/clinic/unicodedata.c.h
generated
|
|
@ -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]*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue