Commit c61ac164 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

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

parent 554626ad
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment