summaryrefslogtreecommitdiff
path: root/Objects/setobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r--Objects/setobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 083cbea412..7fde01f599 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -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)