Commit 66f6238f authored by Raymond Hettinger's avatar Raymond Hettinger

Add assertion to verify the pre-condition in the comments.

parent b62226cc
......@@ -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)
......
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