]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Clarify some comments in SMP code
[stockfish] / src / evaluate.cpp
index be53a73ee886633bc7775c3453856a50531e78e6..341b50682f64dac590dd07ac89917c1a25fa8b1a 100644 (file)
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#include <algorithm>
 #include <cassert>
 #include <iomanip>
 #include <sstream>
-#include <algorithm>
 
 #include "bitcount.h"
 #include "evaluate.h"
@@ -791,7 +791,7 @@ namespace {
     Value v =  mg_value(score) * int(ei.mi->game_phase())
              + eg_value(score) * int(PHASE_MIDGAME - ei.mi->game_phase()) * sf / SCALE_FACTOR_NORMAL;
 
-    v /= PHASE_MIDGAME;
+    v /= int(PHASE_MIDGAME);
 
     // In case of tracing add all single evaluation contributions for both white and black
     if (Trace)