X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fbitboard.h;h=0f55810cece9864471329997ae359d56877cc8d6;hb=6f15e7fab277c2595633ad08fdc25bdd7e0ab166;hp=704f4bb4e8a463d3d349bfee9fefcbbf9df63bc6;hpb=bc3c215490edf24cef0ff87d74ab01eeb91ae1bc;p=stockfish diff --git a/src/bitboard.h b/src/bitboard.h index 704f4bb4..0f55810c 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -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); }