]> git.sesse.net Git - stockfish/blobdiff - src/tt.h
Fix a possible overflow in TT resize
[stockfish] / src / tt.h
index b2f9e0dcdf68a0c643a121dbc8dc4078faeeb1d2..420aaa6b60c03a106a949a6c8dfc7e447273fdf0 100644 (file)
--- a/src/tt.h
+++ b/src/tt.h
@@ -76,7 +76,7 @@ class TranspositionTable {
   static const int CacheLineSize = 64;
   static const int TTClusterSize = 3;
 
-  struct TTCluster {
+  struct Cluster {
     TTEntry entry[TTClusterSize];
     char padding[2]; // Align to the cache line size
   };
@@ -96,7 +96,7 @@ public:
 
 private:
   size_t clusterCount;
-  TTCluster* table;
+  Cluster* table;
   void* mem;
   uint8_t generation8; // Size must be not bigger than TTEntry::genBound8
 };