diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-03-01 04:02:43 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-03-01 04:02:43 (GMT) |
commit | e36dce69dd405aa544651293cf131702dd47bbdf (patch) | |
tree | afd1c40be5add58a6e140eeeffe4d3d466fd8be6 /Include/object.h | |
parent | 68bc4f9ae574b81fc14e54c9e96ea2b4fb4eaecb (diff) | |
download | cpython-e36dce69dd405aa544651293cf131702dd47bbdf.zip cpython-e36dce69dd405aa544651293cf131702dd47bbdf.tar.gz cpython-e36dce69dd405aa544651293cf131702dd47bbdf.tar.bz2 |
Make ob_refcnt and tp_maxalloc (and friends) Py_ssize_t.
Diffstat (limited to 'Include/object.h')
-rw-r--r-- | Include/object.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/object.h b/Include/object.h index 9c91373..5db92db 100644 --- a/Include/object.h +++ b/Include/object.h @@ -77,7 +77,7 @@ whose size is determined when the object is allocated. /* PyObject_HEAD defines the initial segment of every PyObject. */ #define PyObject_HEAD \ _PyObject_HEAD_EXTRA \ - int ob_refcnt; \ + Py_ssize_t ob_refcnt; \ struct _typeobject *ob_type; #define PyObject_HEAD_INIT(type) \ @@ -333,9 +333,9 @@ typedef struct _typeobject { #ifdef COUNT_ALLOCS /* these must be last and never explicitly initialized */ - int tp_allocs; - int tp_frees; - int tp_maxalloc; + Py_ssize_t tp_allocs; + Py_ssize_t tp_frees; + Py_ssize_t tp_maxalloc; struct _typeobject *tp_next; #endif } PyTypeObject; |