diff --git a/src/namedict.h b/src/namedict.h index 4d108296..641e0182 100644 --- a/src/namedict.h +++ b/src/namedict.h @@ -53,7 +53,7 @@ namespace pkpy{ uint16_t find_perfect_hash_seed(uint16_t capacity, const std::vector& keys){ if(keys.empty()) return kHashSeeds[0]; std::set indices; - std::pair best_score = {kHashSeeds[0], 0}; + std::pair best_score = {kHashSeeds[0], 0.0f}; for(int i=0; i