From: Marco Costalba Date: Tue, 21 Oct 2008 23:12:16 +0000 (+0100) Subject: Fix a bug in generate_pawn_captures() X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=b145e995592c95014a519e91845379d0f9f89ac6;ds=inline 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 --- 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);