]> git.sesse.net Git - stockfish/blobdiff - src/bitboard.h
Make endgames consistent
[stockfish] / src / bitboard.h
index 704f4bb4e8a463d3d349bfee9fefcbbf9df63bc6..0f55810cece9864471329997ae359d56877cc8d6 100644 (file)
@@ -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);
 }