From b145e995592c95014a519e91845379d0f9f89ac6 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Wed, 22 Oct 2008 00:12:16 +0100 Subject: [PATCH] Fix a bug in generate_pawn_captures() Introduced in "movegen: Introduce generate_pawn_captures()" when unifiying black and white functions. Signed-off-by: Marco Costalba --- src/movegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/movegen.cpp b/src/movegen.cpp index 19cd4687..e7c78bb6 100644 --- a/src/movegen.cpp +++ b/src/movegen.cpp @@ -673,7 +673,7 @@ namespace { } // Non-capturing promotions - b1 = (Us == WHITE ? pawns << 8 : pawns >> 8) & pos.empty_squares() & Rank8BB; + b1 = (Us == WHITE ? pawns << 8 : pawns >> 8) & pos.empty_squares() & TRank8BB; while (b1) { sq = pop_1st_bit(&b1); -- 2.39.2