X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=a291ec466258b0bb336850e3444cffbccb4bc6f0;hb=17c511922277e49eacdede3c92491ee32c303c30;hp=7f7df3c5465e491bc78775338f12de908fd3d6ab;hpb=080a4995a3977a0fe7071e62151dc4d716a13302;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 7f7df3c5..a291ec46 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -930,7 +930,7 @@ namespace { b3 |= (b2 & pos.pieces_of_color(them)); // There are no enemy pawns in the pawn's path - assert((b2 & pos.pieces_of_color_and_type(them, PAWN)) == EmptyBoardBB); + assert((b2 & pos.pieces_of_color(them) & pos.pieces_of_type(PAWN)) == EmptyBoardBB); // Are any of the squares in the pawn's path attacked or occupied by the enemy? if (b3 == EmptyBoardBB)