commit | c61ac1642d19f54c7b755098230967ad2e603180 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue Mar 21 08:52:38 2017 +0200 |
committer | GitHub <noreply@github.com> | Tue Mar 21 08:52:38 2017 +0200 |
tree | f4f38e0b6455fd227b72fd7387d143c5ccd52399 | |
parent | 554626ada769abf82a5dabe6966afa4265acb6a6 [diff] |
Don't use Py_SIZE for dict object. (#747)
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 1b1486a..aac7ac4 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c
@@ -1915,7 +1915,7 @@ 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; }