mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Use bool(Bitboard b) instead of !!b (#1321)
The idiom !!b is confusing newcomers (e.g. Stefan needs explaining here https://groups.google.com/d/msg/fishcooking/vYqnsRI4brY/Gaf60QuACwAJ). No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
28b6a457c2
commit
2acda1fde3
@@ -174,7 +174,7 @@ namespace {
|
||||
|
||||
// Score this pawn
|
||||
if (supported | phalanx)
|
||||
score += Connected[opposed][!!phalanx][popcount(supported)][relative_rank(Us, s)];
|
||||
score += Connected[opposed][bool(phalanx)][popcount(supported)][relative_rank(Us, s)];
|
||||
|
||||
else if (!neighbours)
|
||||
score -= Isolated, e->weakUnopposed[Us] += !opposed;
|
||||
|
||||
Reference in New Issue
Block a user