mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00: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:
parent
4ede49cd85
commit
9749f1f14c
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue