[Python-checkins] r63743 - python/branches/okkoto-sizeof/Objects/dictobject.c
robert.schuppenies
python-checkins at python.org
Tue May 27 13:01:35 CEST 2008
Author: robert.schuppenies
Date: Tue May 27 13:01:35 2008
New Revision: 63743
Log:
use PyInt_FromSsize_t instead of PyLong_FromLong to create result object
Modified:
python/branches/okkoto-sizeof/Objects/dictobject.c
Modified: python/branches/okkoto-sizeof/Objects/dictobject.c
==============================================================================
--- python/branches/okkoto-sizeof/Objects/dictobject.c (original)
+++ python/branches/okkoto-sizeof/Objects/dictobject.c Tue May 27 13:01:35 2008
@@ -2040,7 +2040,7 @@
res = sizeof(PyDictObject) + sizeof(mp->ma_table);
if (mp->ma_table != mp->ma_smalltable)
res = res + (mp->ma_mask + 1) * sizeof(PyDictEntry);
- return PyLong_FromLong(res);
+ return PyInt_FromSsize_t(res);
}
PyDoc_STRVAR(has_key__doc__,
More information about the Python-checkins
mailing list