Don't use Py_SIZE for dict object. (#747)

This commit is contained in:
Serhiy Storchaka 2017-03-21 08:52:38 +02:00 committed by GitHub
parent 554626ada7
commit c61ac1642d
1 changed files with 1 additions and 1 deletions

View File

@ -1915,7 +1915,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(PyDict_GET_SIZE(iterable)))) {
Py_DECREF(d);
return NULL;
}