]> git.sesse.net Git - stockfish/blobdiff - src/benchmark.cpp
Prefer int to uint8_t when possible
[stockfish] / src / benchmark.cpp
index c554008b857f3b46d50fc66ab501a8c8c85ab82d..15816beebfe6521a965e01a302d81b62678c5b48 100644 (file)
@@ -155,13 +155,13 @@ void benchmark(const string& commandLine) {
       cerr << "\nBench position: " << cnt << '/' << positions.size() << endl << endl;
       if (limitType == "perft")
       {
-          int64_t perftCnt = perft(pos, maxDepth * OnePly);
+          int64_t perftCnt = perft(pos, maxDepth * ONE_PLY);
           cerr << "\nPerft " << maxDepth << " result (nodes searched): " << perftCnt << endl << endl;
           totalNodes += perftCnt;
       } else {
           if (!think(pos, false, false, dummy, dummy, 0, maxDepth, maxNodes, secsPerPos, moves))
               break;
-          totalNodes += nodes_searched();
+          totalNodes += pos.nodes_searched();
       }
   }