X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.cpp;h=04730abcc4a0f68eebb078a6044b1316eaae8d2b;hp=c3f66d6cadbfe10f70f93ef3f4ce7148d066c625;hb=9369f4963d9376820cb5ca4bad66b86e67b0a010;hpb=2416242c966bfccd5a779e037dfe0d2d4cd8f3fe diff --git a/src/timeman.cpp b/src/timeman.cpp index c3f66d6c..04730abc 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008-2014 Marco Costalba, Joona Kiiski, Tord Romstad + Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -63,7 +63,7 @@ namespace { double ratio1 = (TMaxRatio * moveImportance) / (TMaxRatio * moveImportance + otherMovesImportance); double ratio2 = (moveImportance + TStealRatio * otherMovesImportance) / (moveImportance + otherMovesImportance); - return myTime * std::min(ratio1, ratio2); + return int(myTime * std::min(ratio1, ratio2)); // Intel C++ asks an explicit cast } } // namespace