X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=15816beebfe6521a965e01a302d81b62678c5b48;hp=c554008b857f3b46d50fc66ab501a8c8c85ab82d;hb=9f626725aeb770a38be093a9a47a461053cf7008;hpb=839088205edd88eee9852c21442424cc66941ccb diff --git a/src/benchmark.cpp b/src/benchmark.cpp index c554008b..15816bee 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -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(); } }