Kaydet (Commit) c61ac164 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka Kaydeden (comit) GitHub

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

üst 554626ad
...@@ -1915,7 +1915,7 @@ _PyDict_FromKeys(PyObject *cls, PyObject *iterable, PyObject *value) ...@@ -1915,7 +1915,7 @@ _PyDict_FromKeys(PyObject *cls, PyObject *iterable, PyObject *value)
PyObject *key; PyObject *key;
Py_hash_t hash; Py_hash_t hash;
if (dictresize(mp, ESTIMATE_SIZE(Py_SIZE(iterable)))) { if (dictresize(mp, ESTIMATE_SIZE(PyDict_GET_SIZE(iterable)))) {
Py_DECREF(d); Py_DECREF(d);
return NULL; 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