bpo-29476: Simplify set_add_entry() (#5175)
This commit is contained in:
parent
d37258dd2e
commit
3329992e31
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue