mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Use Py_ssize_t for counts and sizes.
Convert Py_ssize_t using PyInt_FromSsize_t
This commit is contained in:
parent
ad0a4629be
commit
eb079f1c25
10 changed files with 33 additions and 31 deletions
|
@ -247,7 +247,7 @@ structseq_reduce(PyStructSequence* self)
|
|||
PyObject* tup;
|
||||
PyObject* dict;
|
||||
PyObject* result;
|
||||
long n_fields, n_visible_fields, n_unnamed_fields;
|
||||
Py_ssize_t n_fields, n_visible_fields, n_unnamed_fields;
|
||||
int i;
|
||||
|
||||
n_fields = REAL_SIZE(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue