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:
parent
8e85aa3a65
commit
6b8a07eccc
1 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue