Skip to content

Commit ffbaa1c

Browse files
committed
Fix MSVC warning from previous patch
No functional change.
1 parent 57dfe41 commit ffbaa1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timeman.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TimeManagement {
3232
void pv_instability(double bestMoveChanges) { unstablePvFactor = 1 + bestMoveChanges; }
3333
int available() const { return int(optimumTime * unstablePvFactor * 0.76); }
3434
int maximum() const { return maximumTime; }
35-
int elapsed() const { return Search::Limits.npmsec ? Search::RootPos.nodes_searched() : now() - start; }
35+
int elapsed() const { return int(Search::Limits.npmsec ? Search::RootPos.nodes_searched() : now() - start); }
3636

3737
int64_t availableNodes; // When in 'nodes as time' mode
3838

0 commit comments

Comments
 (0)