mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Use Py_ssize_t for counts and sizes.
This commit is contained in:
parent
97c65a8068
commit
ad0a4629be
12 changed files with 67 additions and 66 deletions
|
|
@ -782,7 +782,7 @@ build_node_tree(PyObject *tuple)
|
|||
res = NULL;
|
||||
}
|
||||
if (res && encoding) {
|
||||
int len;
|
||||
Py_ssize_t len;
|
||||
len = PyString_GET_SIZE(encoding) + 1;
|
||||
res->n_str = (char *)PyMem_MALLOC(len);
|
||||
if (res->n_str != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue