[Python-checkins] r42708 - python/trunk/Include/object.h
martin.v.loewis
python-checkins at python.org
Wed Mar 1 05:02:50 CET 2006
Author: martin.v.loewis
Date: Wed Mar 1 05:02:43 2006
New Revision: 42708
Modified:
python/trunk/Include/object.h
Log:
Make ob_refcnt and tp_maxalloc (and friends) Py_ssize_t.
Modified: python/trunk/Include/object.h
==============================================================================
--- python/trunk/Include/object.h (original)
+++ python/trunk/Include/object.h Wed Mar 1 05:02:43 2006
@@ -77,7 +77,7 @@
/* 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 @@
#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;
More information about the Python-checkins
mailing list