]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Fix build on Intel compiler
[stockfish] / 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