]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Fix build on Intel compiler
[stockfish] / src / evaluate.cpp
index d87c51272862dac0cea0f79a7caf8dc2e4062f7b..71120fde8fb20ca99ff4e9d691ad7d31889258b7 100644 (file)
@@ -508,7 +508,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[Us] += MobilityBonus[Piece][mob];
 
         // Decrease score if we are attacked by an enemy pawn. Remaining part