X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=bb43f4e6aa14db2c90fdde2f366ceb4d828b91a4;hp=33c1a1a9982c061ae5672eeaa4d3245322498696;hb=25113861552c9c09ce5dbd5a20510db2fd2e65b0;hpb=fa80479b1db2ba1d99dfc983f017759ecf160aab diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 33c1a1a9..bb43f4e6 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -22,6 +22,7 @@ //// Includes //// #include +#include #include #include "search.h" @@ -102,7 +103,7 @@ void benchmark(int argc, char* argv[]) { if (!fenFile.is_open()) { cerr << "Unable to open positions file " << posFile << endl; - Application::exit_with_failure(); + exit(EXIT_FAILURE); } string pos; while (fenFile.good()) @@ -125,7 +126,7 @@ void benchmark(int argc, char* argv[]) { { Move moves[1] = { MOVE_NONE }; int dummy[2] = { 0, 0 }; - Position pos(*it, 0); + Position pos(*it, false, 0); cerr << "\nBench position: " << cnt << '/' << positions.size() << endl << endl; if (valType == "perft") {