فهرست منبع

Update namedict.h

blueloveTH 3 سال پیش
والد
کامیت
35435ab957
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/namedict.h

+ 1 - 1
src/namedict.h

@@ -53,7 +53,7 @@ namespace pkpy{
     uint16_t find_perfect_hash_seed(uint16_t capacity, const std::vector<StrName>& keys){
     uint16_t find_perfect_hash_seed(uint16_t capacity, const std::vector<StrName>& keys){
         if(keys.empty()) return kHashSeeds[0];
         if(keys.empty()) return kHashSeeds[0];
         std::set<uint16_t> indices;
         std::set<uint16_t> indices;
-        std::pair<uint16_t, float> best_score = {kHashSeeds[0], 0};
+        std::pair<uint16_t, float> best_score = {kHashSeeds[0], 0.0f};
         for(int i=0; i<kHashSeeds.size(); i++){
         for(int i=0; i<kHashSeeds.size(); i++){
             indices.clear();
             indices.clear();
             for(auto key: keys){
             for(auto key: keys){