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

This commit is contained in:
Raymond Hettinger 2015-11-17 20:58:43 -08:00
parent b62226ccc4
commit 66f6238fca

View file

@ -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)