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.
This commit is contained in:
Marco Costalba
2014-04-30 08:55:45 +02:00
parent d3ffd0ffca
commit cf50e265fa

View File

@@ -791,7 +791,7 @@ namespace {
Value v = mg_value(score) * int(ei.mi->game_phase()) Value v = mg_value(score) * int(ei.mi->game_phase())
+ eg_value(score) * int(PHASE_MIDGAME - ei.mi->game_phase()) * sf / SCALE_FACTOR_NORMAL; + 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 // In case of tracing add all single evaluation contributions for both white and black
if (Trace) if (Trace)