Commit e4495877 authored by Raymond Hettinger's avatar Raymond Hettinger

Minor tweek. Counting down rather than up reduces register pressure.

parent f4f67e52
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment