]> git.sesse.net Git - stockfish/blobdiff - src/timeman.cpp
Fix a warning with MSVC
[stockfish] / src / timeman.cpp
index 330709be6985d84be15be778dfc8746eccd0741a..2612fb52fa88762474170f182a1ef98846180b04 100644 (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;
   }