From 3f1bc9e01301d617f530b05207c4067df92543f0 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Thu, 25 Jun 2015 05:15:09 +0200 Subject: [PATCH] Fix compile on icc Error is: a value of type "int" cannot be assigned to an entity of type "Value" Also retire the now unused squares_of_color() function. No functional change. --- src/bitboard.h | 8 -------- src/evaluate.cpp | 3 ++- src/movepick.cpp | 2 +- src/search.cpp | 2 +- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/bitboard.h b/src/bitboard.h index f6f1eba6..4aecf418 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -200,14 +200,6 @@ inline Bitboard passed_pawn_mask(Color c, Square s) { } -/// squares_of_color() returns a bitboard representing all the squares of the -/// same color of the given one. - -inline Bitboard squares_of_color(Square s) { - return DarkSquares & s ? DarkSquares : ~DarkSquares; -} - - /// aligned() returns true if the squares s1, s2 and s3 are aligned either on a /// straight or on a diagonal line. diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 2f9cec5c..5c1f7496 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -124,7 +124,8 @@ namespace { S( 94, 99), S( 96,100), S(99,111), S(99,112) } }; - // Outpost[knight/bishop][supported by pawn] + // Outpost[knight/bishop][supported by pawn] contains bonuses for knights and bishops + // outposts, bigger if outpost piece is supported by a pawn. const Score Outpost[][2] = { { S(28, 7), S(42,11) }, // Knights { S(12, 3), S(18, 5) } // Bishops diff --git a/src/movepick.cpp b/src/movepick.cpp index 94ceedbf..a69a4c1b 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -149,7 +149,7 @@ void MovePicker::score() { // calls in case we get a cutoff. for (auto& m : *this) m.value = PieceValue[MG][pos.piece_on(to_sq(m))] - - 200 * relative_rank(pos.side_to_move(), to_sq(m)); + - Value(200 * relative_rank(pos.side_to_move(), to_sq(m))); } template<> diff --git a/src/search.cpp b/src/search.cpp index 4aecad1c..cbc5038a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -902,7 +902,7 @@ moves_loop: // When in check and at SpNode search starts from here // Futility pruning: parent node if (predictedDepth < 7 * ONE_PLY) { - futilityValue = ss->staticEval + futility_margin(predictedDepth) + 256; + futilityValue = ss->staticEval + futility_margin(predictedDepth) + 256; if (futilityValue <= alpha) { -- 2.39.2