mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Fix build on Intel compiler
Due to a strange issue (bug?) the ternary
operator does not return a BitCountType for
icc, so revert to the expression used
before bcbc9bfd1f
No functional change.
This commit is contained in:
@@ -509,7 +509,9 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
||||
ei.kingAdjacentZoneAttacksCount[Us] += popcount<Max15>(bb);
|
||||
}
|
||||
|
||||
int mob = popcount<Piece == QUEEN ? Full : Max15>(b & mobilityArea);
|
||||
int mob = Piece != QUEEN ? popcount<Max15>(b & mobilityArea)
|
||||
: popcount<Full >(b & mobilityArea);
|
||||
|
||||
mobility += MobilityBonus[Piece][mob];
|
||||
|
||||
// Decrease score if we are attacked by an enemy pawn. Remaining part
|
||||
|
||||
Reference in New Issue
Block a user