Remove an useless assert in evaluate_passed_pawns()
authorMarco Costalba <mcostalba@gmail.com>
Sat, 22 May 2010 18:14:19 +0000 (19:14 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 22 May 2010 18:14:19 +0000 (19:14 +0100)
The tested square comes from a bitboard anded with
pos.pieces_of_color(Us), so assert is useless.

Another nitpick report by Marek Kwiatkowski  ;-)

No functional change.

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

index 4987a53122d153e30ec6e87c727ba38e681a9426..f1bfa5c6cd867fe55ef3c3a85f1db79ff08d655c 100644 (file)
@@ -812,7 +812,6 @@ namespace {
     {
         Square s = pop_1st_bit(&b);
 
-        assert(pos.piece_on(s) == piece_of_color_and_type(Us, PAWN));
         assert(pos.pawn_is_passed(Us, s));
 
         int r = int(relative_rank(Us, s) - RANK_2);