mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user