]> git.sesse.net Git - stockfish/commitdiff
Allow benches with more than 2G nodes.
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Mon, 7 Nov 2016 12:35:28 +0000 (13:35 +0100)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Mon, 7 Nov 2016 12:35:28 +0000 (13:35 +0100)
    ./stockfish bench 128 1 4000000000 default nodes

    crashes before, works after.

    No functional change.

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);