1
0
Fork 0

Avoid explicit bitwise operators

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
sf_4_base
Reuven Peleg 2013-05-05 22:39:06 +03:00 committed by Marco Costalba
parent 7f4c7cd785
commit e7505324f6
1 changed files with 1 additions and 2 deletions

View File

@ -677,8 +677,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
Score score = SCORE_ZERO;
// Undefended minors get penalized even if not under attack
undefendedMinors = pos.pieces(Them)
& (pos.pieces(BISHOP) | pos.pieces(KNIGHT))
undefendedMinors = pos.pieces(Them, BISHOP, KNIGHT)
& ~ei.attackedBy[Them][ALL_PIECES];
if (undefendedMinors)