X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=9d3c58c87d2859d16a1286155917c1816ec55f84;hp=9241834f3ea5bdcec135fe5bdd89436e33bc089e;hb=47a076810291cb7e9b9333e106f2aa9cd4c30c58;hpb=3c07603dac03f0da20194097cf4eb1a396fea60d diff --git a/src/misc.h b/src/misc.h index 9241834f..9d3c58c8 100644 --- a/src/misc.h +++ b/src/misc.h @@ -32,7 +32,7 @@ void prefetch(char* addr); void start_logger(bool b); void dbg_hit_on(bool b); -void dbg_hit_on_c(bool c, bool b); +void dbg_hit_on(bool c, bool b); void dbg_mean_of(int v); void dbg_print(); @@ -45,11 +45,10 @@ namespace Time { template struct HashTable { - HashTable() : table(Size, Entry()) {} Entry* operator[](Key key) { return &table[(uint32_t)key & (Size - 1)]; } private: - std::vector table; + std::vector table = std::vector(Size); };