mirror of
https://github.com/sockspls/badfish
synced 2025-07-12 03:59:15 +00:00
Fix a silly warning on Intel compiler
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
ca4e78db8d
commit
8de91be61e
1 changed files with 48 additions and 48 deletions
|
@ -626,9 +626,8 @@ namespace {
|
||||||
evaluate_trapped_bishop_a1h1(pos, s, us, ei);
|
evaluate_trapped_bishop_a1h1(pos, s, us, ei);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Piece != ROOK && Piece != QUEEN)
|
if (Piece == ROOK || Piece == QUEEN)
|
||||||
continue;
|
{
|
||||||
|
|
||||||
// Queen or rook on 7th rank
|
// Queen or rook on 7th rank
|
||||||
them = opposite_color(us);
|
them = opposite_color(us);
|
||||||
|
|
||||||
|
@ -638,11 +637,11 @@ namespace {
|
||||||
ei.mgValue += Sign[us] * (Piece == ROOK ? MidgameRookOn7thBonus : MidgameQueenOn7thBonus);
|
ei.mgValue += Sign[us] * (Piece == ROOK ? MidgameRookOn7thBonus : MidgameQueenOn7thBonus);
|
||||||
ei.egValue += Sign[us] * (Piece == ROOK ? EndgameRookOn7thBonus : EndgameQueenOn7thBonus);
|
ei.egValue += Sign[us] * (Piece == ROOK ? EndgameRookOn7thBonus : EndgameQueenOn7thBonus);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Special extra evaluation for rooks
|
// Special extra evaluation for rooks
|
||||||
if (Piece != ROOK)
|
if (Piece == ROOK)
|
||||||
continue;
|
{
|
||||||
|
|
||||||
// Open and half-open files
|
// Open and half-open files
|
||||||
f = square_file(s);
|
f = square_file(s);
|
||||||
if (ei.pi->file_is_half_open(us, f))
|
if (ei.pi->file_is_half_open(us, f))
|
||||||
|
@ -686,6 +685,7 @@ namespace {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
inline Bitboard shiftRowsDown(const Bitboard& b, int num) {
|
inline Bitboard shiftRowsDown(const Bitboard& b, int num) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue