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