]> git.sesse.net Git - stockfish/blobdiff - src/benchmark.cpp
Triviality in main.cpp
[stockfish] / src / benchmark.cpp
index 33c1a1a9982c061ae5672eeaa4d3245322498696..bb43f4e6aa14db2c90fdde2f366ceb4d828b91a4 100644 (file)
@@ -22,6 +22,7 @@
 //// Includes
 ////
 #include <fstream>
+#include <iostream>
 #include <vector>
 
 #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")
       {