diff --git a/src/namedict.h b/src/namedict.h index ed6da0f2..511dd042 100644 --- a/src/namedict.h +++ b/src/namedict.h @@ -52,7 +52,7 @@ namespace pkpy{ uint32_t find_perfect_hash_seed(uint32_t capacity, const std::vector& keys){ if(keys.empty()) return kHashSeeds[0]; std::set indices; - std::vector> scores; + std::vector> scores(kHashSeeds.size()); for(int i=0; i b.second; }); return scores[0].first;