This commit is contained in:
Raymond Hettinger 2015-07-15 23:52:29 -07:00
commit d702044bcd
3 changed files with 17 additions and 1 deletions

View file

@ -668,7 +668,8 @@ set_merge(PySetObject *so, PyObject *otherset)
}
/* We can't assure there are no duplicates, so do normal insertions */
for (i = 0; i <= other->mask; i++, other_entry++) {
for (i = 0; i <= other->mask; i++) {
other_entry = &other->table[i];
key = other_entry->key;
if (key != NULL && key != dummy) {
if (set_add_entry(so, key, other_entry->hash))