]> git.sesse.net Git - stockfish/blobdiff - src/benchmark.cpp
Allow benches with more than 2G nodes.
[stockfish] / src / benchmark.cpp
index f2d1f0686c60925116b5ed08f917f17605d0fcf1..bf0312c206594b8d80414f6af2a3a48be9b0ce87 100644 (file)
@@ -117,7 +117,7 @@ void benchmark(const Position& current, istream& is) {
       limits.movetime = stoi(limit); // movetime is in millisecs
 
   else if (limitType == "nodes")
       limits.movetime = stoi(limit); // movetime is in millisecs
 
   else if (limitType == "nodes")
-      limits.nodes = stoi(limit);
+      limits.nodes = stoll(limit);
 
   else if (limitType == "mate")
       limits.mate = stoi(limit);
 
   else if (limitType == "mate")
       limits.mate = stoi(limit);