Skip to content

Commit af839fe

Browse files
bpo-29864: Don't use Py_SIZE for dict object. (#747) (#750)
1 parent f93b994 commit af839fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/dictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ _PyDict_FromKeys(PyObject *cls, PyObject *iterable, PyObject *value)
19291929
PyObject *key;
19301930
Py_hash_t hash;
19311931

1932-
if (dictresize(mp, ESTIMATE_SIZE(Py_SIZE(iterable)))) {
1932+
if (dictresize(mp, ESTIMATE_SIZE(((PyDictObject *)iterable)->ma_used))) {
19331933
Py_DECREF(d);
19341934
return NULL;
19351935
}

0 commit comments

Comments
 (0)