[Python-checkins] r63659 - python/branches/okkoto-sizeof/Objects/typeobject.c
robert.schuppenies
python-checkins at python.org
Mon May 26 09:58:03 CEST 2008
Author: robert.schuppenies
Date: Mon May 26 09:58:02 2008
New Revision: 63659
Log:
use PyInt_FromSsize_t instead of PyLong_FromLong to create result object
Modified:
python/branches/okkoto-sizeof/Objects/typeobject.c
Modified: python/branches/okkoto-sizeof/Objects/typeobject.c
==============================================================================
--- python/branches/okkoto-sizeof/Objects/typeobject.c (original)
+++ python/branches/okkoto-sizeof/Objects/typeobject.c Mon May 26 09:58:02 2008
@@ -3415,7 +3415,7 @@
}
res += self->ob_type->tp_basicsize;
- return PyLong_FromLong(res);
+ return PyInt_FromSsize_t(res);
}
static PyMethodDef object_methods[] = {
More information about the Python-checkins
mailing list