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=c08e7419a08a9060613bf3190a33997d1f9a535f;ds=sidebyside 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. The same patch was already applied in 9749f1f14c956133c2f42f96592b Thanks to NssY Wanyonyi for pointing out this. No functional change. --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index d87c5127..71120fde 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -508,7 +508,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[Us] += MobilityBonus[Piece][mob]; // Decrease score if we are attacked by an enemy pawn. Remaining part