]> git.sesse.net Git - stockfish/commitdiff
Fix build on Intel compiler
authorMarco Costalba <mcostalba@gmail.com>
Sat, 13 Jul 2013 21:07:24 +0000 (23:07 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 13 Jul 2013 21:13:30 +0000 (23:13 +0200)
Due to a strange issue (bug?) the ternary
operator does not return a BitCountType for
icc, so revert to the expression used
before bcbc9bfd1f5efeaa3

No functional change.

src/evaluate.cpp

index 3dbd6dc03a8db98b1da7501432296f99187d00a4..8bbd0bff161b3917f6fae299f6f21fe7ff65d2af 100644 (file)
@@ -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