mirror of https://github.com/python/cpython
Don't use Py_SIZE for dict object. (#747)
This commit is contained in:
parent
554626ada7
commit
c61ac1642d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue