mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Avoid explicit bitwise operators
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
7f4c7cd785
commit
e7505324f6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user