summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-21 06:52:38 (GMT)
committerGitHub <noreply@github.com>2017-03-21 06:52:38 (GMT)
commitc61ac1642d19f54c7b755098230967ad2e603180 (patch)
treef4f38e0b6455fd227b72fd7387d143c5ccd52399 /Objects
parent554626ada769abf82a5dabe6966afa4265acb6a6 (diff)
downloadcpython-c61ac1642d19f54c7b755098230967ad2e603180.zip
cpython-c61ac1642d19f54c7b755098230967ad2e603180.tar.gz
cpython-c61ac1642d19f54c7b755098230967ad2e603180.tar.bz2
Don't use Py_SIZE for dict object. (#747)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c2
1 files changed, 1 insertions, 1 deletions
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 @@ _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;
}