From: Marco Costalba Date: Sat, 13 Jul 2013 21:07:24 +0000 (+0200) Subject: Fix build on Intel compiler X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=9749f1f14c956133c2f42f96592b46f4f2c2b7ec;hp=4ede49cd850392f28bc9da9537c111d2c3f0b297 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 bcbc9bfd1f5efeaa3 No functional change. --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 3dbd6dc0..8bbd0bff 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -509,7 +509,9 @@ Value do_evaluate(const Position& pos, Value& margin) { ei.kingAdjacentZoneAttacksCount[Us] += popcount(bb); } - int mob = popcount(b & mobilityArea); + int mob = Piece != QUEEN ? popcount(b & mobilityArea) + : popcount(b & mobilityArea); + mobility += MobilityBonus[Piece][mob]; // Decrease score if we are attacked by an enemy pawn. Remaining part