From 61c727fdcbf676632371bb646aa69482096d371d Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Mon, 7 Nov 2016 13:35:28 +0100 Subject: [PATCH] Allow benches with more than 2G nodes. ./stockfish bench 128 1 4000000000 default nodes crashes before, works after. No functional change. --- src/benchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/benchmark.cpp b/src/benchmark.cpp index f2d1f068..bf0312c2 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -117,7 +117,7 @@ void benchmark(const Position& current, istream& is) { 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); -- 2.39.2