Skip to content

Commit

Permalink
bpo-29864: Don't use Py_SIZE for dict object. (#747) (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Mar 22, 2017
1 parent f93b994 commit af839fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/dictobject.c
Expand Up @@ -1929,7 +1929,7 @@ _PyDict_FromKeys(PyObject *cls, PyObject *iterable, PyObject *value)
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;
}
Expand Down

0 comments on commit af839fe

Please sign in to comment.