commit | af839fe2fef12dbbc8083fc7f01daee48a85a916 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Wed Mar 22 07:45:23 2017 +0200 |
committer | GitHub <noreply@github.com> | Wed Mar 22 07:45:23 2017 +0200 |
tree | a55123ec88b815b71bd66119cedd3f137fdcbd73 | |
parent | f93b9948920018eb30ac678647c75d5e8e5ca458 [diff] [blame] |
bpo-29864: Don't use Py_SIZE for dict object. (#747) (#750)
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index a0c1977..8bcc931 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c
@@ -1929,7 +1929,7 @@ PyObject *key; Py_hash_t hash; - if (dictresize(mp, ESTIMATE_SIZE(Py_SIZE(iterable)))) { + if (dictresize(mp, ESTIMATE_SIZE(((PyDictObject *)iterable)->ma_used))) { Py_DECREF(d); return NULL; }