summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:24:38 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:24:38 (GMT)
commit97c65a8068056863215eb3a14024c1e4a8d19b9f (patch)
treed4ee691894c871090536d6ea06e3b3634a57c22e /Include/object.h
parent44e379d573289c8aa48486910eabe7d54f4f356f (diff)
downloadcpython-97c65a8068056863215eb3a14024c1e4a8d19b9f.zip
cpython-97c65a8068056863215eb3a14024c1e4a8d19b9f.tar.gz
cpython-97c65a8068056863215eb3a14024c1e4a8d19b9f.tar.bz2
Use Py_ssize_t for field sizes and offsets.
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/object.h b/Include/object.h
index faa3057..e3f825a 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -258,7 +258,7 @@ typedef PyObject *(*allocfunc)(struct _typeobject *, Py_ssize_t);
typedef struct _typeobject {
PyObject_VAR_HEAD
const char *tp_name; /* For printing, in format "<module>.<name>" */
- int tp_basicsize, tp_itemsize; /* For allocation */
+ Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */
/* Methods to implement standard operations */
@@ -303,7 +303,7 @@ typedef struct _typeobject {
richcmpfunc tp_richcompare;
/* weak reference enabler */
- long tp_weaklistoffset;
+ Py_ssize_t tp_weaklistoffset;
/* Added in release 2.2 */
/* Iterators */
@@ -318,7 +318,7 @@ typedef struct _typeobject {
PyObject *tp_dict;
descrgetfunc tp_descr_get;
descrsetfunc tp_descr_set;
- long tp_dictoffset;
+ Py_ssize_t tp_dictoffset;
initproc tp_init;
allocfunc tp_alloc;
newfunc tp_new;