X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fbitboard.h;h=0f55810cece9864471329997ae359d56877cc8d6;hb=527d832a6de81c455cc8818e85c309fa1443f862;hp=704f4bb4e8a463d3d349bfee9fefcbbf9df63bc6;hpb=b0eb5a1ba3d094a1d2236db6f33e0d2164ec3480;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); }