From c08e7419a08a9060613bf3190a33997d1f9a535f Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 13 Jul 2013 23:07:24 +0200 Subject: [PATCH] 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. --- src/evaluate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2