Skip to content

Commit 19c842c

Browse files
committed
gh-154709: Remove redundant reverse iterator check
1 parent 2433f37 commit 19c842c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Objects/dictobject.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6274,14 +6274,10 @@ dictreviter_iter_lock_held(PyDictObject *d, PyObject *self)
62746274
}
62756275

62766276
if (_PyDict_HasSplitTable(d)) {
6277-
if (i >= d->ma_used) {
6278-
goto fail;
6279-
}
6280-
62816277
int index = get_index_from_order(d, i);
62826278
key = LOAD_SHARED_KEY(DK_UNICODE_ENTRIES(k)[index].me_key);
62836279
value = d->ma_values->values[index];
6284-
assert (value != NULL);
6280+
assert(value != NULL);
62856281
}
62866282
else {
62876283
if (i >= k->dk_nentries) {

0 commit comments

Comments
 (0)