1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00

Fix a warning with MSVC

warning C4244: '*=': conversion from 'double' to 'int', possible loss of data

No functional change.
This commit is contained in:
Marco Costalba 2017-08-31 09:01:20 +02:00
parent 9d95d43c57
commit 3fd7e37868

View file

@ -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;
}