1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00: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:
Marco Costalba 2008-10-19 10:17:17 +01:00
parent 8e85aa3a65
commit 6b8a07eccc

View file

@ -252,10 +252,9 @@ int generate_evasions(const Position& pos, MoveStack* mlist) {
}
// 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.rook_attacks(checksq) & pos.rooks_and_queens(us))
& not_pinned;
| (pos.rook_attacks(checksq) & pos.rooks_and_queens(us)) ) & not_pinned;
while (b1)
{