mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Add assertion to verify the pre-condition in the comments.
This commit is contained in:
parent
b62226ccc4
commit
66f6238fca
1 changed files with 1 additions and 0 deletions
|
@ -269,6 +269,7 @@ set_insert_clean(PySetObject *so, PyObject *key, Py_hash_t hash)
|
|||
size_t i = (size_t)hash & mask;
|
||||
size_t j;
|
||||
|
||||
assert(so->fill == so->used);
|
||||
while (1) {
|
||||
entry = &table[i];
|
||||
if (entry->key == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue