diff --git a/src/mapping.c b/src/mapping.c index 168d835bc81f1bb602890f1dd7348b3cc33a36fa..def183aa489226c74b0164f5093e8783c54af828 100644 --- a/src/mapping.c +++ b/src/mapping.c @@ -181,7 +181,8 @@ static void init_mapping(struct mapping *m, #endif if(size) { - hashsize=find_next_power(size / AVG_LINK_LENGTH + 1); + hashsize = size / AVG_LINK_LENGTH + 1; + hashsize = (hashsize <= 32) ? 32 : find_next_power(hashsize); e=MAPPING_DATA_SIZE(hashsize, size);