summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorRobert Schuppenies <okkotonushi@googlemail.com>2008-06-26 15:20:35 (GMT)
committerRobert Schuppenies <okkotonushi@googlemail.com>2008-06-26 15:20:35 (GMT)
commit161b92103c46311519e19e4c1f3a2315da87b2c9 (patch)
treeae3ec3197f5c977444512750655f071fd51f134a /Objects/dictobject.c
parent68dc052ca6183b9225d143c91557525bc0b23d98 (diff)
downloadcpython-161b92103c46311519e19e4c1f3a2315da87b2c9.zip
cpython-161b92103c46311519e19e4c1f3a2315da87b2c9.tar.gz
cpython-161b92103c46311519e19e4c1f3a2315da87b2c9.tar.bz2
Corrected inconsistencies in sizeof tests and addressed issue pointed
out by Jean Brouwers.
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 9b14e63..08a3a1e 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -2037,7 +2037,7 @@ dict_sizeof(PyDictObject *mp)
{
Py_ssize_t res;
- res = sizeof(PyDictObject) + sizeof(mp->ma_table);
+ res = sizeof(PyDictObject);
if (mp->ma_table != mp->ma_smalltable)
res = res + (mp->ma_mask + 1) * sizeof(PyDictEntry);
return PyInt_FromSsize_t(res);