mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 05:07:46 +00:00
Small cleanups
closes https://github.com/official-stockfish/Stockfish/pull/2628 No functional change
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user