mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Minor tweek. Counting down rather than up reduces register pressure.
This commit is contained in:
parent
f4f67e52b4
commit
e4495877dd
1 changed files with 1 additions and 1 deletions
|
@ -678,7 +678,7 @@ set_merge(PySetObject *so, PyObject *otherset)
|
|||
size_t newmask = (size_t)so->mask;
|
||||
so->fill = other->used;
|
||||
so->used = other->used;
|
||||
for (i = 0; i <= other->mask; i++, other_entry++) {
|
||||
for (i = other->mask + 1; i > 0 ; i--, other_entry++) {
|
||||
key = other_entry->key;
|
||||
if (key != NULL && key != dummy) {
|
||||
Py_INCREF(key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue