Use Py_ssize_t for counts and sizes.

This commit is contained in:
Martin v. Löwis 2006-02-16 14:30:23 +00:00
parent 97c65a8068
commit ad0a4629be
12 changed files with 67 additions and 66 deletions

View file

@ -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)