From 9749f1f14c956133c2f42f96592b46f4f2c2b7ec 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 used before bcbc9bfd1f5efeaa3 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 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 -- 2.39.2