mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user