Skip to content

Commit

Permalink
Fix a warning with MSVC
Browse files Browse the repository at this point in the history
warning C4244: '*=': conversion from 'double' to 'int', possible loss of data

No functional change.
  • Loading branch information
mcostalba committed Sep 1, 2017
1 parent 9d95d43 commit 3fd7e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timeman.cpp
Expand Up @@ -64,7 +64,7 @@ namespace {
int time = int(std::min(1.0, ratio) * std::max(0, myTime - moveOverhead));

if (type == OptimumTime && ponder)
time *= 1.25;
time = 5 * time / 4;

return time;
}
Expand Down

0 comments on commit 3fd7e37

Please sign in to comment.