Commit 3329992e authored by Raymond Hettinger's avatar Raymond Hettinger Committed by GitHub

bpo-29476: Simplify set_add_entry() (#5175)

parent d37258dd
......@@ -187,7 +187,7 @@ set_add_entry(PySetObject *so, PyObject *key, Py_hash_t hash)
goto restart;
mask = so->mask; /* help avoid a register spill */
}
else if (entry->hash == -1 && freeslot == NULL)
else if (entry->hash == -1)
freeslot = entry;
if (i + LINEAR_PROBES <= mask) {
......@@ -216,7 +216,7 @@ set_add_entry(PySetObject *so, PyObject *key, Py_hash_t hash)
goto restart;
mask = so->mask;
}
else if (entry->hash == -1 && freeslot == NULL)
else if (entry->hash == -1)
freeslot = entry;
}
}
......
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