mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Fix an assert due to a missing parentesis
Bitwise operators precedence issue here, was causing an assert. This is a fallout from recent patches. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -252,10 +252,9 @@ int generate_evasions(const Position& pos, MoveStack* mlist) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Pieces captures
|
// Pieces captures
|
||||||
b1 = (pos.knight_attacks(checksq) & pos.knights(us))
|
b1 = ( (pos.knight_attacks(checksq) & pos.knights(us))
|
||||||
| (pos.bishop_attacks(checksq) & pos.bishops_and_queens(us))
|
| (pos.bishop_attacks(checksq) & pos.bishops_and_queens(us))
|
||||||
| (pos.rook_attacks(checksq) & pos.rooks_and_queens(us))
|
| (pos.rook_attacks(checksq) & pos.rooks_and_queens(us)) ) & not_pinned;
|
||||||
& not_pinned;
|
|
||||||
|
|
||||||
while (b1)
|
while (b1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user