X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=420347f43faf46313fe06a3991f3e9c7bbd02a91;hp=34ef03259f9de5e6f1d75664aa0c16bef88f7e36;hb=a87da2c4b3dce975fa8642c352c99aed5a1420f8;hpb=bc83515c9e821016d2113298ef988e99ceced1af diff --git a/src/misc.h b/src/misc.h index 34ef0325..420347f4 100644 --- a/src/misc.h +++ b/src/misc.h @@ -46,7 +46,7 @@ namespace Time { template struct HashTable { HashTable() : table(Size, Entry()) {} - Entry* operator[](Key k) { return &table[(uint32_t)k & (Size - 1)]; } + Entry* operator[](Key key) { return &table[(uint32_t)key & (Size - 1)]; } private: std::vector table;