]> git.sesse.net Git - stockfish/blobdiff - src/movegen.cpp
Fix an assert due to a missing parentesis
[stockfish] / src / movegen.cpp
index d942d9c290c47abc77f90b770f49f4cc56fc7162..0646c230f50c778360a48c368258d47998df2e68 100644 (file)
@@ -252,10 +252,9 @@ int generate_evasions(const Position& pos, MoveStack* mlist) {
       }
 
       // Pieces captures
-      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;
+      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;
 
       while (b1)
       {