1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

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.
This commit is contained in:
Marco Costalba 2015-06-25 05:15:09 +02:00
parent e8cc5c9968
commit 3f1bc9e013
4 changed files with 4 additions and 11 deletions

View file

@ -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.

View file

@ -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

View file

@ -149,7 +149,7 @@ void MovePicker::score<CAPTURES>() {
// 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<>

View file

@ -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)
{