Small cleanups

closes https://github.com/official-stockfish/Stockfish/pull/2628

No functional change
This commit is contained in:
Joost VandeVondele
2020-04-29 17:39:25 +02:00
parent 4776dc0e12
commit 353e20674b
6 changed files with 17 additions and 15 deletions
+1 -1
View File
@@ -306,7 +306,7 @@ void Position::set_castling_right(Color c, Square rfrom) {
Square rto = relative_square(c, cr & KING_SIDE ? SQ_F1 : SQ_D1);
castlingPath[cr] = (between_bb(rfrom, rto) | between_bb(kfrom, kto) | rto | kto)
& ~(square_bb(kfrom) | rfrom);
& ~(kfrom | rfrom);
}