Skip to content

Commit c61ac16

Browse files
Don't use Py_SIZE for dict object. (#747)
1 parent 554626a commit c61ac16

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
@@ -1915,7 +1915,7 @@ _PyDict_FromKeys(PyObject *cls, PyObject *iterable, PyObject *value)
19151915
PyObject *key;
19161916
Py_hash_t hash;
19171917

1918-
if (dictresize(mp, ESTIMATE_SIZE(Py_SIZE(iterable)))) {
1918+
if (dictresize(mp, ESTIMATE_SIZE(PyDict_GET_SIZE(iterable)))) {
19191919
Py_DECREF(d);
19201920
return NULL;
19211921
}

0 commit comments

Comments
 (0)