From: Marco Costalba Date: Wed, 30 Apr 2014 06:55:45 +0000 (+0200) Subject: Fix a compile error with Intel C++ X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=cf50e265faf3a331db775db04954c3feb29fd756;p=stockfish Fix a compile error with Intel C++ Intel compiler is very picky: "error: this operation on an enumerated type requires an applicable user-defined operator function" Reported by Tony Gaor. No functional change. --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index be53a73e..c2b94b75 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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)