mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +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.
The same patch was already applied in
9749f1f14c
Thanks to NssY Wanyonyi for pointing out
this.
No functional change.
This commit is contained in:
@@ -508,7 +508,9 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
|||||||
ei.kingAdjacentZoneAttacksCount[Us] += popcount<Max15>(bb);
|
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[Us] += MobilityBonus[Piece][mob];
|
mobility[Us] += MobilityBonus[Piece][mob];
|
||||||
|
|
||||||
// Decrease score if we are attacked by an enemy pawn. Remaining part
|
// Decrease score if we are attacked by an enemy pawn. Remaining part
|
||||||
|
|||||||
Reference in New Issue
Block a user