]> git.sesse.net Git - stockfish/commitdiff
Fix a bug in generate_pawn_captures()
authorMarco Costalba <mcostalba@gmail.com>
Tue, 21 Oct 2008 23:12:16 +0000 (00:12 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 23 Oct 2008 05:17:04 +0000 (07:17 +0200)
Introduced in "movegen: Introduce generate_pawn_captures()"
when unifiying black and white functions.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/movegen.cpp

index 19cd4687a7b219135a5ab898b93eb81a9cb7d9ec..e7c78bb6e7b43cbf33f477aa635c304438a4dcf8 100644 (file)
@@ -673,7 +673,7 @@ namespace {
     }
 
     // Non-capturing promotions
     }
 
     // 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);
     while (b1)
     {
         sq = pop_1st_bit(&b1);