add num_entries assertion

This commit is contained in:
Thomas Waldmann 2023-02-08 22:45:11 +01:00
parent b79766a933
commit 316bb7c937
No known key found for this signature in database
GPG Key ID: 243ACFA951F78E01
1 changed files with 2 additions and 0 deletions

View File

@ -225,6 +225,8 @@ hashindex_resize(HashIndex *index, int capacity)
return 0;
}
}
assert(index->num_entries == new->num_entries);
hashindex_free_buckets(index);
index->buckets = new->buckets;
index->num_buckets = new->num_buckets;