1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-02 17:49:35 +00:00

Allow benches with more than 2G nodes.

./stockfish bench 128 1 4000000000 default nodes

    crashes before, works after.

    No functional change.
This commit is contained in:
Joost VandeVondele 2016-11-07 13:35:28 +01:00
parent 876f07cbee
commit 61c727fdcb

View 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.nodes = stoi(limit);
limits.nodes = stoll(limit);
else if (limitType == "mate")
limits.mate = stoi(limit);