We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57dfe41 commit ffbaa1cCopy full SHA for ffbaa1c
src/timeman.h
@@ -32,7 +32,7 @@ class TimeManagement {
32
void pv_instability(double bestMoveChanges) { unstablePvFactor = 1 + bestMoveChanges; }
33
int available() const { return int(optimumTime * unstablePvFactor * 0.76); }
34
int maximum() const { return maximumTime; }
35
- int elapsed() const { return Search::Limits.npmsec ? Search::RootPos.nodes_searched() : now() - start; }
+ int elapsed() const { return int(Search::Limits.npmsec ? Search::RootPos.nodes_searched() : now() - start); }
36
37
int64_t availableNodes; // When in 'nodes as time' mode
38
0 commit comments