diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-16 16:18:57 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-16 16:18:57 +0200 |
commit | f22b56b777f7134b5c4e6c9caa9249e92c4f4fd9 (patch) | |
tree | 8e4784da85fdc63feb24d68dc2047571225869e4 /Objects/setobject.c | |
parent | 41127a7fe66d0a720d378f68f1cacbee8badf8db (diff) | |
download | cpython-f22b56b777f7134b5c4e6c9caa9249e92c4f4fd9.tar.gz |
Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of dict.
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r-- | Objects/setobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c index b7e0617db3..59ed7955e6 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -981,7 +981,7 @@ set_update_internal(PySetObject *so, PyObject *other) PyObject *value; Py_ssize_t pos = 0; Py_hash_t hash; - Py_ssize_t dictsize = PyDict_Size(other); + Py_ssize_t dictsize = PyDict_GET_SIZE(other); /* Do one big resize at the start, rather than * incrementally resizing as we insert new keys. Expect |