summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r--Objects/setobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index e6fb46e..922c619 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -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))