Skip to content

Commit e449587

Browse files
committed
Minor tweek. Counting down rather than up reduces register pressure.
1 parent f4f67e5 commit e449587

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
@@ -678,7 +678,7 @@ set_merge(PySetObject *so, PyObject *otherset)
678678
size_t newmask = (size_t)so->mask;
679679
so->fill = other->used;
680680
so->used = other->used;
681-
for (i = 0; i <= other->mask; i++, other_entry++) {
681+
for (i = other->mask + 1; i > 0 ; i--, other_entry++) {
682682
key = other_entry->key;
683683
if (key != NULL && key != dummy) {
684684
Py_INCREF(key);

0 commit comments

Comments
 (0)