Use GROW_AT and SHRINK_AT everywhere

They were forgotten in one spot.
pull/35/head
Le 1 year ago
parent 84d0d3bf75
commit 965d43b626

@ -199,8 +199,8 @@ void hashmap_clear(struct hashmap *map, bool update_cap) {
}
memset(map->buckets, 0, map->bucketsz*map->nbuckets);
map->mask = map->nbuckets-1;
map->growat = map->nbuckets*0.75;
map->shrinkat = map->nbuckets*0.10;
map->growat = map->nbuckets*GROW_AT;
map->shrinkat = map->nbuckets*SHRINK_AT;
}
static bool resize0(struct hashmap *map, size_t new_cap) {

Loading…
Cancel
Save