X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.h;h=c5390befdfff4efc7cc52e063cbc12eb7cd30274;hp=1333767f6ceff7268dea48b8d28f700514167bf0;hb=27efc5ac996ffc679395317c8bbb16aca996296c;hpb=57dfe41ddb9de358eb6b3aaee404b137330e1252 diff --git a/src/timeman.h b/src/timeman.h index 1333767f..c5390bef 100644 --- a/src/timeman.h +++ b/src/timeman.h @@ -32,7 +32,7 @@ public: void pv_instability(double bestMoveChanges) { unstablePvFactor = 1 + bestMoveChanges; } int available() const { return int(optimumTime * unstablePvFactor * 0.76); } int maximum() const { return maximumTime; } - 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); } int64_t availableNodes; // When in 'nodes as time' mode