Skip to content

Commit 3fd3f1e

Browse files
committed
Use v->capacity instead of dk_nentries when clearing inline values
1 parent a3112a5 commit 3fd3f1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Objects/dictobject.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8687,7 +8687,7 @@ transfer_keys_and_values_lock_held(PyObject *res, PyObject *dict)
86878687
}
86888688
dictkeys_incref(keys);
86898689
clear_common(old);
8690-
for (Py_ssize_t i = 0; i < keys->dk_nentries; i++) {
8690+
for (Py_ssize_t i = 0; i < v->capacity; i++) {
86918691
FT_ATOMIC_STORE_PTR_RELEASE(v->values[i], NULL);
86928692
}
86938693
FT_ATOMIC_STORE_UINT8_RELEASE(v->size, 0);

0 commit comments

Comments
 (0)