mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 18:46:59 +08:00
small cleanups
closes https://github.com/official-stockfish/Stockfish/pull/2695 No functional change
This commit is contained in:
@@ -253,7 +253,7 @@ inline Bitboard pawn_attack_span(Color c, Square s) {
|
||||
/// the given color and on the given square is a passed pawn.
|
||||
|
||||
inline Bitboard passed_pawn_span(Color c, Square s) {
|
||||
return forward_ranks_bb(c, s) & (adjacent_files_bb(s) | file_bb(s));
|
||||
return pawn_attack_span(c, s) | forward_file_bb(c, s);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user