projects
/
stockfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85b08ce
)
size_t cast in TranspositionTable::first_entry()
author
lucasart
<lucas.braesch@gmail.com>
Thu, 3 Jul 2014 10:23:56 +0000
(18:23 +0800)
committer
lucasart
<lucas.braesch@gmail.com>
Thu, 3 Jul 2014 10:23:56 +0000
(18:23 +0800)
32-bit truncation would make this function bogus when clusterCount >= 2^33 (ie. Hash >= 256 GB).
No function change.
src/tt.h
patch
|
blob
|
history
diff --git
a/src/tt.h
b/src/tt.h
index c442205253e2232aad77ffde7bf9ea70bc6bc0ba..30a9389788d51979944130042dba489d22ec26c4 100644
(file)
--- a/
src/tt.h
+++ b/
src/tt.h
@@
-109,7
+109,7
@@
extern TranspositionTable TT;
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