projects
/
stockfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee9e162
)
Remove an useless assert in evaluate_passed_pawns()
author
Marco Costalba
<mcostalba@gmail.com>
Sat, 22 May 2010 18:14:19 +0000
(19:14 +0100)
committer
Marco 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
patch
|
blob
|
history
diff --git
a/src/evaluate.cpp
b/src/evaluate.cpp
index 4987a53122d153e30ec6e87c727ba38e681a9426..f1bfa5c6cd867fe55ef3c3a85f1db79ff08d655c 100644
(file)
--- a/
src/evaluate.cpp
+++ b/
src/evaluate.cpp
@@
-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);