]> git.sesse.net Git - stockfish/blobdiff - src/benchmark.cpp
Prefer size_t over int for array sizes
[stockfish] / src / benchmark.cpp
index 5800a37bb10484526c0aeb923d24c20bd2b0a0d8..c3a4191337d69c4d8f91f637e2c3839b8857eb78 100644 (file)
@@ -120,7 +120,7 @@ void benchmark(const Position& current, istream& is) {
 
       if (limitType == "perft")
       {
-          int64_t cnt = Search::perft(pos, limits.depth * ONE_PLY);
+          size_t cnt = Search::perft(pos, limits.depth * ONE_PLY);
           cerr << "\nPerft " << limits.depth  << " leaf nodes: " << cnt << endl;
           nodes += cnt;
       }