]> git.sesse.net Git - stockfish/blobdiff - src/tt.cpp
small cleanups
[stockfish] / src / tt.cpp
index 4e06bed93451d867fdc49e4d6c11fc26b0ad27ef..0a3c54a1e2318046abe8dbc4d9859dc1f0b78a6d 100644 (file)
@@ -94,8 +94,8 @@ void TranspositionTable::clear() {
               WinProcGroup::bindThisThread(idx);
 
           // Each thread will zero its part of the hash table
-          const size_t stride = clusterCount / Options["Threads"],
-                       start  = stride * idx,
+          const size_t stride = size_t(clusterCount / Options["Threads"]),
+                       start  = size_t(stride * idx),
                        len    = idx != Options["Threads"] - 1 ?
                                 stride : clusterCount - start;
 
@@ -103,7 +103,7 @@ void TranspositionTable::clear() {
       });
   }
 
-  for (std::thread& th: threads)
+  for (std::thread& th : threads)
       th.join();
 }