Mercurial > cpython-lru_cache-weakref
diff Objects/structseq.c @ 36519:d6d415df0df0 legacy-trunk
Use Py_ssize_t for counts and sizes.
Convert Py_ssize_t using PyInt_FromSsize_t
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Thu, 16 Feb 2006 14:32:27 +0000 |
| parents | 1596ff5c79b5 |
| children | dba6494735d0 |
line wrap: on
line diff
--- a/Objects/structseq.c Thu Feb 16 14:30:23 2006 +0000 +++ b/Objects/structseq.c Thu Feb 16 14:32:27 2006 +0000 @@ -247,7 +247,7 @@ 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);
