Skip to content

Commit a2bcfdb

Browse files
committed
review comment
1 parent 7a4859b commit a2bcfdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/setobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3040,7 +3040,7 @@ PySet_Add(PyObject *anyset, PyObject *key)
30403040
// this can be done without a lock.
30413041
// Since another key is added to the set, we must track the frozenset
30423042
// if needed.
3043-
if (PyFrozenSet_CheckExact(anyset) && PyObject_GC_IsTracked(key) && !PyObject_GC_IsTracked(anyset)) {
3043+
if (PyFrozenSet_CheckExact(anyset) && !PyObject_GC_IsTracked(anyset) && PyObject_GC_IsTracked(key)) {
30443044
_PyObject_GC_TRACK(anyset);
30453045
}
30463046
return set_add_key((PySetObject *)anyset, key);

0 commit comments

Comments
 (0)