mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user