mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
merge
This commit is contained in:
commit
d702044bcd
3 changed files with 17 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue