Branch: Tag:

2014-12-04

2014-12-04 19:27:04 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Mappings: Fixed assertion.

Ensure that there are at least as many keypairs as buckets in
created mappings.

Fixes fatal "Pretty mean hashtable there buster!".

197:    {    hashsize=find_next_power(size / AVG_LINK_LENGTH + 1);    +  if (size < hashsize) size = hashsize; +     e=MAPPING_DATA_SIZE(hashsize, size);       md=xcalloc(1,e);