mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
size_t cast in TranspositionTable::first_entry()
32-bit truncation would make this function bogus when clusterCount >= 2^33 (ie. Hash >= 256 GB). No function change.
This commit is contained in:
parent
85b08ce3ad
commit
c192b692cf
1 changed files with 1 additions and 1 deletions
2
src/tt.h
2
src/tt.h
|
@ -109,7 +109,7 @@ extern TranspositionTable TT;
|
||||||
|
|
||||||
inline TTEntry* TranspositionTable::first_entry(const Key key) const {
|
inline TTEntry* TranspositionTable::first_entry(const Key key) const {
|
||||||
|
|
||||||
return &table[(uint32_t)key & (clusterCount - 1)].entry[0];
|
return &table[(size_t)key & (clusterCount - 1)].entry[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // #ifndef TT_H_INCLUDED
|
#endif // #ifndef TT_H_INCLUDED
|
||||||
|
|
Loading…
Add table
Reference in a new issue