Skip to content

Commit 2a512a8

Browse files
committed
Address comments
1 parent d14856c commit 2a512a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Objects/setobject.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,9 +1112,13 @@ setiter_iternext(PyObject *self)
11121112
setentry *entry;
11131113
PySetObject *so = si->si_set;
11141114

1115+
#ifdef Py_GIL_DISABLED
1116+
assert(so != NULL);
1117+
#else
11151118
if (so == NULL) {
11161119
return NULL;
11171120
}
1121+
#endif
11181122
assert(PyAnySet_Check(so));
11191123

11201124
Py_ssize_t so_used = FT_ATOMIC_LOAD_SSIZE_RELAXED(so->used);

0 commit comments

Comments
 (0)